For generating the method names, the first character of the field, if it is a lowercase character, is title-cased, otherwise, it is left unmodified.
Then, get/set/is is prefixed.
No method is generated if any method already exists with the same name, even if the parameter list is different. For example, getFoo()
will not be generated if there's already a method getFoo(int x) even though it is technically possible to make the method. This caveat
exists to prevent confusion. If the generation of a method is skipped for this reason, a warning is emitted instead.
For boolean fields that start with is or has immediately followed by a title-case letter, nothing is prefixed
to generate the getter name.
Any variation on boolean will not result in using the is prefix instead of the get prefix; for example,
returning java.lang.Boolean results in a get prefix, not an is prefix.
Any annotations named @NonNull (case insensitive) on the field are interpreted as: This field must not ever hold
null. Therefore, these annotations result in an explicit null check in the generated setter. Also, these
annotations (as well as any annotation named @Nullable or @CheckForNull) are copied to setter parameter and getter method
Using the AccessLevel.NONE access level simply generates nothing. It's useful only in combination with
@Data.