Reports declarations whose modifiers are not in the canonical preferred order (as stated in the Java Language Specification).
After the quick-fix is applied:
Use the inspection settings to:
toggle the reporting of misplaced annotations: (annotations with
ElementType.TYPE_USEnot directly before the type and after the modifier keywords, or other annotations not before the modifier keywords). When this option is disabled, any annotation can be positioned before or after the modifier keywords. Modifier lists with annotations in between the modifier keywords will always be reported.
specify whether the
ElementType.TYPE_USEannotation should be positioned directly before a type, even when the annotation has other targets specified.
Check annotation order
Target TYPE_USE annotations always go before type
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3