@Override
  public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) {
    for (final TypeElement annotation : annotations) {
      for (final Element element : roundEnv.getElementsAnnotatedWith(annotation)) {
        if (element.getAnnotation(ApiStatus.Internal.class) == null) {
          this.processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, ADVENTURE_PLATFORMAPI_ANNOTATION + " needs to be used together with " + ApiStatus.Internal.class.getCanonicalName() + ", see PlatformAPI javadocs", element);
        }
      }
    }
    return false;
  }
Validate that PlatformAPI annotations are used in tandem with the {@link ApiStatus.Internal} annotation.

@since 4.12.0
annotation-processors/src/main/java/net/kyori/adventure/annotation/processing/PlatformAPIAnnotationProcessor.java