List<PsiParenthesizedExpression> (@NotNull PsiElement element) { if (!(element instanceof PsiJavaToken)) return null; List<PsiParenthesizedExpression> possibleExpressions = new ArrayList<>(); while ((element = PsiTreeUtil.getParentOfType(element, PsiParenthesizedExpression.class)) != null) { PsiParenthesizedExpression parenthesized = (PsiParenthesizedExpression)element; if (DistributiveExpression.create(parenthesized) != null || AssociativeExpression.create(parenthesized) != null) { possibleExpressions.add(parenthesized); } } return possibleExpressions; }