@Override
		public List<NamedType> findSubtypes(Annotated annotated) {
			ArrayList<NamedType> subTypes = new ArrayList<>();

			if (annotated.getAnnotated() instanceof Class<?> clazz
					&& clazz.isSealed()
					&& !clazz.getPackage().getName().startsWith("java")
			) {

				Schema schema = clazz.getAnnotation(Schema.class);
				if (schema != null && schema.oneOf().length > 0) {
					return new ArrayList<>();
				}

				JsonSubTypes jsonSubTypes = clazz.getAnnotation(JsonSubTypes.class);
				if (jsonSubTypes != null && jsonSubTypes.value().length > 0) {
					return new ArrayList<>();
				}


				Class<?>[] permittedSubClasses = clazz.getPermittedSubclasses();
				if (permittedSubClasses.length > 0) {
					Arrays.stream(permittedSubClasses).map(NamedType::new).forEach(subTypes::add);
				}
			}

			return subTypes;
		}
The type sealed class annotation introspector.
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration/SpringDocSealedClassModule.java