void (@NotNull PsiNewExpression expression, Object... infos) { final PsiJavaCodeReferenceElement classReference = expression.getClassOrAnonymousClassReference(); if (classReference != null) { registerError(classReference, infos); } else if (expression.getType() instanceof PsiArrayType) { final PsiKeyword sibling = PsiTreeUtil.getNextSiblingOfType(expression.getFirstChild(), PsiKeyword.class); if (sibling != null) { registerError(sibling, infos); } } }