void (final @NotNull PsiArrayInitializerMemberValue initializer) { if (PsiUtil.isLanguageLevel7OrHigher(initializer)) return; final PsiElement lastElement = PsiTreeUtil.skipWhitespacesAndCommentsBackward(initializer.getLastChild()); if (PsiUtil.isJavaToken(lastElement, JavaTokenType.COMMA)) { final String message = JavaAnalysisBundle.message("inspection.compiler.javac.quirks.anno.array.comma.problem"); final String fixName = JavaAnalysisBundle.message("inspection.compiler.javac.quirks.anno.array.comma.fix"); myHolder.registerProblem(lastElement, message, QuickFixFactory.getInstance().createDeleteFix(lastElement, fixName)); } }