PsiPolyadicExpression (@NotNull PsiParenthesizedExpression parenthesized, @NotNull Set<IElementType> innerOperators) { PsiPolyadicExpression expression = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprDown(parenthesized), PsiPolyadicExpression.class); if (expression == null) return null; if (!innerOperators.contains(expression.getOperationTokenType()) || expression.getOperands().length < 2) return null; return expression; }