code: public FieldInfoList getDeclaredFieldInfo() {
          if (!scanResult.scanSpec.enableFieldInfo) {
              throw new IllegalArgumentException("Please call ClassGraph#enableFieldInfo() before #scan()");
          }
          return fieldInfo == null ? FieldInfoList.EMPTY_LIST : fieldInfo;
      }
docs: Returns information on all visible fields declared by this class, but not by its superclasses. See also:
  
  <ul>
  <li>{@link #getFieldInfo(String)}
  <li>{@link #getDeclaredFieldInfo(String)}
  <li>{@link #getFieldInfo()}
  </ul>
  
  <p>
  Requires that {@link ClassGraph#enableFieldInfo()} be called before scanning, otherwise throws
  {@link IllegalArgumentException}.
  
  <p>
  By default only returns information for public methods, unless {@link ClassGraph#ignoreFieldVisibility()} was
  called before the scan.
  
  @return the list of FieldInfo objects for visible fields declared by this class, or the empty list if no
  fields were found or visible.
  @throws IllegalArgumentException
  if {@link ClassGraph#enableFieldInfo()} was not called prior to initiating the scan.