code: public static boolean isGetterMethod(Method m) {
  
          String methodName = m.getName();
  
          if (methodName.equals("getClass")) {
              return false;
          }
  
          if (!methodName.startsWith(GET_METHOD_PREFIX) && !methodName.startsWith(IS_METHOD_PREFIX)) {
              return false;
          }
          if (m.getParameterCount() > 0) {
              return false;
          }
  
          return true;
      }
docs: Is getter method boolean.
  
  @param m the m
  @return the boolean