void (final @NotNull PsiTypeCastExpression expression) { if (PsiUtil.isLanguageLevel7OrHigher(expression)) return; final PsiTypeElement type = expression.getCastType(); if (type != null) { type.accept(new JavaRecursiveElementWalkingVisitor() { @Override public void visitReferenceParameterList(final @NotNull PsiReferenceParameterList list) { super.visitReferenceParameterList(list); if (list.getFirstChild() != null && QUALIFIER_REFERENCE.accepts(list)) { final String message = JavaAnalysisBundle.message("inspection.compiler.javac.quirks.qualifier.type.args.problem"); final String fixName = JavaAnalysisBundle.message("inspection.compiler.javac.quirks.qualifier.type.args.fix"); myHolder.registerProblem(list, message, QuickFixFactory.getInstance().createDeleteFix(list, fixName)); } } }); } }