code: public FieldInfo getFieldInfo(final String fieldName) {
          if (!scanResult.scanSpec.enableFieldInfo) {
              throw new IllegalArgumentException("Please call ClassGraph#enableFieldInfo() before #scan()");
          }
          // Implement field overriding
          for (final ClassInfo ci : getOverrideOrder()) {
              final FieldInfo fi = ci.getDeclaredFieldInfo(fieldName);
              if (fi != null) {
                  return fi;
              }
          }
          return null;
      }
docs: Returns information on the named filed declared by this class, or by its superclasses. See also:
  
  <ul>
  <li>{@link #getDeclaredFieldInfo(String)}
  <li>{@link #getFieldInfo()}
  <li>{@link #getDeclaredFieldInfo()}
  </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.
  
  @param fieldName
  The field name.
  @return the {@link FieldInfo} object for the named field of this class or its superclases, 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.