code: protected static IJavaClassField findField( IJavaClassInfo cls, String name ) {
      IJavaClassField[] allFields = cls.getFields();
  
      for (IJavaClassField f : allFields) {
        if (f.getName().equals(name)) {
          return f;
        }
      }
  
      IJavaClassField match = findDeclaredField( cls, name );
      if ( match != null ) {
        return match;
      }
  
      throw new IllegalArgumentException("No field named " + name + " found starting from class " + cls);
    }
docs: ------------------------- Field Resolution