boolean (final PsiExpression argument, final PsiParameter param) { if (argument instanceof PsiReferenceExpression) { final PsiElement element = ((PsiReferenceExpression)argument).resolve(); if (element instanceof PsiParameter) { return element.equals(param); } } return false; }