public static boolean isDeprecated(Method method) {
		Class<?> declaringClass = method.getDeclaringClass();
		boolean deprecatedMethod = DEPRECATED_ANNOTATIONS.stream().anyMatch(annoClass -> AnnotatedElementUtils.findMergedAnnotation(method, annoClass) != null);
		boolean deprecatedClass = DEPRECATED_ANNOTATIONS.stream().anyMatch(annoClass -> AnnotatedElementUtils.findMergedAnnotation(declaringClass, annoClass) != null);
		return deprecatedClass || deprecatedMethod;
	}
Is deprecated boolean.

@param method the annotated element
@return the boolean
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/converters/SchemaPropertyDeprecatingConverter.java