int (PsiExpression object) { if (object == null) { return 0; } else if (object instanceof PsiReferenceExpression) { return Objects.hashCode(((PsiReferenceExpression)object).getReferenceName()) * 31 + 1; } else if (object instanceof PsiMethodCallExpression) { return Objects.hashCode(((PsiMethodCallExpression)object).getMethodExpression().getReferenceName()) * 31 + 2; } return object.getNode().getElementType().hashCode(); }