private Set<String> getFieldValues(QuerydslBindings instance, String fieldName, String alternativeFieldName) {
		try {
			Field field = FieldUtils.getDeclaredField(instance.getClass(), fieldName, true);
			if (field == null && alternativeFieldName != null)
				field = FieldUtils.getDeclaredField(instance.getClass(), alternativeFieldName, true);
			if (field != null)
				return (Set<String>) field.get(instance);
		}
		catch (IllegalAccessException e) {
			LOGGER.warn(e.getMessage());
		}
		return Collections.emptySet();
	}
Gets field values.

@param instance             the instance
@param fieldName            the field name
@param alternativeFieldName the alternative field name
@return the field values
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/QuerydslPredicateOperationCustomizer.java