code: public static List<Field> getFirstLevelOfReferenceAttributes(Class<?> clazz) {
          List<Field> references = new ArrayList<Field>();
          List<String> referencedFields = ReflectionUtils.getReferencedAttributeNames(clazz);
  
          for(String eachReference : referencedFields) {
              Field referenceField = ReflectionUtils.getField(clazz, eachReference);
              references.add(referenceField);
          }
  
          return references;
      }
docs: Get only the first Level of Nested Reference Attributes from a given class
  @param clazz
  @return List<Field> of referenced fields