void (@NotNull PsiCallExpression callExpression) { if (!myAccessible) { return; } super.visitCallExpression(callExpression); final PsiMethod method = callExpression.resolveMethod(); if (callExpression instanceof PsiNewExpression newExpression && method == null) { final PsiJavaCodeReferenceElement reference = newExpression.getClassReference(); if (reference != null) { checkElement(reference.resolve()); } } else { checkElement(method); } }