private boolean parseGroupOrParenthesizedSequencePattern() {
    if (atToken(PyTokenTypes.LPAR)) {
      SyntaxTreeBuilder.Marker mark = myBuilder.mark();
      nextToken();
      registerConsumedBracket(PyTokenTypes.LPAR);
      CommaSeparation result = parseCommaSeparatedPatterns(this::parsePattern);
      if (checkMatches(PyTokenTypes.RPAR, PyParsingBundle.message("PARSE.expected.rpar"))) {
        registerConsumedBracket(PyTokenTypes.RPAR);
      }
      mark.done(result == CommaSeparation.SINGLE_NO_COMMA ? PyElementTypes.GROUP_PATTERN : PyElementTypes.SEQUENCE_PATTERN);
      return true;
    }
    return false;
  }
private boolean parseGroupOrParenthesizedSequencePattern()