code: public static boolean isGetter(Method method) {
          String name = method.getName();
          String[] splitname = StringUtils.splitByCharacterTypeCamelCase(name);
          return !method.getReturnType().equals(void.class) && Modifier.isPublic(method.getModifiers())
                  && (splitname[0].equals(GETTER_PREFIX_BOOLEAN) || splitname[0].equals(GETTER_PREFIX));
      }
docs: Determine if the method is a getter.
  
  @param method
  @return