boolean (@NotNull PsiElement match, int start, int end, @NotNull MatchContext context) { if (match instanceof PsiIdentifier) { // since we pickup tokens match = match.getParent(); } else if (match instanceof PsiExpressionStatement) { match = ((PsiExpressionStatement)match).getExpression(); } if (!(match instanceof PsiExpression)) { return false; } final PsiType type = evalType((PsiExpression)match, context); return type != null && doMatchWithTheType(type, context, match, null); }