code: public static ExecutableElement findGetterMethod(
        String propertyName, TypeMirror propertyType, TypeElement declaringClass, boolean isStatic) {
      // Try Objective-C getter naming convention.
      ExecutableElement getter = ElementUtil.findMethod(declaringClass, propertyName);
      if (getter == null) {
        // Try Java getter naming conventions.
        String prefix = TypeUtil.isBoolean(propertyType) ? "is" : "get";
        getter = ElementUtil.findMethod(declaringClass, prefix + NameTable.capitalize(propertyName));
      }
      return getter != null && isStatic == isStatic(getter) ? getter : null;
    }
docs: Locate method which matches either Java or Objective C getter name patterns.