mvvmfx/src/main/java/de/saxsys/mvvmfx/internal/viewloader/ReflectionUtils.java
public static List<Field> getFieldsWithAnnotation(Object target, Class<? extends Annotation> annotationType) {
		return ReflectionUtils.getFieldsFromClassHierarchy(target.getClass())
                .stream()
				.filter(field -> field.isAnnotationPresent(annotationType))
				.collect(Collectors.toList());
	}
public static List<Field> getFieldsWithAnnotation(Object target, Class<? extends Annotation> annotationType) {
		return ReflectionUtils.getFieldsFromClassHierarchy(target.getClass())
                .stream()
				.filter(field -> field.isAnnotationPresent(annotationType))
				.collect(Collectors.toList());
	}
public static List < Field > getFieldsWithAnnotation ( Object target , Class < ? extends Annotation > annotationType ) { return ReflectionUtils . getFieldsFromClassHierarchy ( target . getClass ( ) ) . stream ( ) . filter ( field -> field . isAnnotationPresent ( annotationType ) ) . collect ( Collectors . toList ( ) ) ; }
Returns all fields with the given annotation. Only fields that are declared in the actual class of the instance
are considered (i.e. no fields from super classes). This includes private fields.

@param target
the instance that's class is used to find annotations.
@param annotationType
the type of the annotation that is searched for.
@return a List of Fields that are annotated with the given annotation.
Returns all fields with the given annotation . Only fields that are declared in the actual class of the instance are considered ( i . e . no fields from super classes ) . This includes private fields .