code: public static boolean isGetterMethod(Method method) {
          if (method.getParameterTypes().length != 0) {
              return false;
          }
          String methodName = method.getName();
          if (methodName.startsWith(PROPERTY_ACCESSOR_PREFIX_GET) && method.getReturnType() != void.class) {
              return true;
          } else if (methodName.startsWith(PROPERTY_ACCESSOR_PREFIX_IS) && method.getReturnType() == boolean.class) {
              return true;
          }
          return false;
      }
docs: Checks whether the given method is a valid getter method according to the JavaBeans standard.
  @param method never null
  @return true if the given method is a getter method