code: public static List<String> getDeclaredFields(Class<?> baseClass) {
  
          Method[] methods = baseClass.getMethods();
  
          List<String> fields = new ArrayList<>();
  
          for (Method fm : methods) {
              if ((!fm.getName().startsWith(GET_METHOD_PREFIX) && !fm.getName().startsWith(IS_METHOD_PREFIX)) || fm.getParameterCount() != 0) {
                  continue;
              }
  
              String field = getFieldNameFromMethod(fm);
              fields.add(field);
          }
          return fields;
      }
docs: Get declared fields string [ ].
  
  @param baseClass the base class
  @return the string [ ]