PsiType (@NotNull final GrExpression expression) { if (expression instanceof GrNewExpression) { return expression.getType(); } else if (expression instanceof GrReferenceExpression && ((GrReferenceExpression)expression).getQualifier() == null) { return getTypeByRef((GrReferenceExpression)expression); } return null; }