private static boolean inWithItemsParentheses(@NotNull PsiElement statement, int offset) {
    if (!(statement instanceof PyAstWithStatement)) {
      return false;
    }

    final PsiElement leftParen = PyPsiUtilsCore.getFirstChildOfType(statement, PyTokenTypes.LPAR);
    return leftParen != null && offset >= leftParen.getTextRange().getEndOffset();
  }
private static boolean inWithItemsParentheses(@NotNull PsiElement statement, int offset)