code: public static Set<String> getAttributeNames(
              final Class<?> classToInspect, final Predicate<Field> filter) {
          Set<String> allFields = new HashSet<>();
          getAllAttributes(classToInspect, allFields, FIELD_TO_NAME, filter);
          return allFields;
      }
docs: Converts all properties in {@link #getAllAttributes(Class)} to a set of the attribute names.
  
  @param classToInspect the class to inspect
  @param filter a predicate that returns true when a attribute should be kept in resulting
  collection.