boolean (PsiMethodCallExpression expression) { PsiExpression[] expressions = expression.getArgumentList().getExpressions(); for (PsiExpression psiExpression : expressions) { if (psiExpression instanceof PsiThisExpression) { return true; } } return false; }