PsiType (@NotNull GrReferenceExpressionImpl refExpr, @Nullable PsiElement resolved) { final GrExpression qualifier = refExpr.getQualifier(); if (qualifier != null || resolved instanceof PsiClass || resolved instanceof PsiPackage || resolved instanceof PsiEnumConstant) { return null; } return TypeInferenceHelper.getCurrentContext().getVariableType(refExpr); }