code: public static FieldLocation getFieldLocation(final Node aNode, final Set<FieldLocation> fieldLocations) {
  
          FieldLocation toReturn = null;
  
          if (aNode != null) {
  
              if (CLASS_FIELD_METHOD_ELEMENT_NAMES.contains(aNode.getLocalName().toLowerCase())) {
  
                  // This is a ComplexType which correspond to a Java class.
                  toReturn = getFieldOrMethodLocationIfValid(aNode, getContainingClassOrNull(aNode), fieldLocations);
              } else if (ENUMERATION_FIELD_METHOD_ELEMENT_NAMES.contains(aNode.getLocalName().toLowerCase())) {
  
                  // This is a SimpleType which correspond to a Java enum.
                  toReturn = getFieldOrMethodLocationIfValid(aNode, getContainingClassOrNull(aNode), fieldLocations);
              }
          }
  
          // All done.
          return toReturn;
      }
docs: Retrieves a FieldLocation from the supplied Set, provided that the FieldLocation matches the supplied Node.
  
  @param aNode          The non-null Node.
  @param fieldLocations The Set of known/found FieldLocation instances.
  @return The FieldLocation corresponding to the supplied DOM Node.