void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); final PsiReferenceExpression methodExpression = expression.getMethodExpression(); if (methodExpression.getQualifierExpression() != null) { return; } final PsiMethod method = expression.resolveMethod(); if (method == null || method.isConstructor() || method.hasModifierProperty(PsiModifier.STATIC)) { return; } registerError(methodExpression, methodExpression, method); }