public static boolean annotatedNotNull(List<Annotation> annotations) {
		Collection<String> annotationSimpleNames = annotations.stream()
				.map(annotation -> annotation.annotationType().getSimpleName())
				.collect(Collectors.toSet());
		return ANNOTATIONS_FOR_REQUIRED.stream().anyMatch(annotationSimpleNames::contains);
	}
Is annotated notnull.

@param annotations the field annotations
@return the boolean
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SchemaUtils.java