private static boolean isPartOfLargerExpression(PsiPolyadicExpression expression) {
    if (expression.getOperands().length > 2) {
      return true;
    }
    final PsiElement containingElement = PsiUtil.skipParenthesizedExprUp(expression.getParent());
    if (containingElement instanceof PsiExpression containingExpression) {
      if (!PsiUtil.isConstantExpression(containingExpression)) {
        return false;
      }
    }
    else {
      return false;
    }
    return true;
  }
private static boolean isPartOfLargerExpression(PsiPolyadicExpression expression)