PsiElement () { if (!myReferenceExpression.isValid() || !canModify(myReferenceExpression)) return null; PsiElement parent = myReferenceExpression.getParent(); if (parent instanceof PsiMethodCallExpression) return null; if (myReferenceExpression.getReferenceNameElement() != null) { if (!CreateFromUsageUtils.isValidReference(myReferenceExpression, false)) { return myReferenceExpression; } } return null; }