void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); final PsiMethod psiMethod = expression.resolveMethod(); final PsiReferenceExpression methodExpression = expression.getMethodExpression(); if (psiMethod != null && !psiMethod.hasModifierProperty(PsiModifier.STATIC) && methodExpression.getQualifierExpression() == null) { replacements.add(expression); } }