static RegExpGroup resolve(@NotNull String groupName, PsiFile file) {
    return SyntaxTraverser.psiTraverser(file)
      .filter(RegExpGroup.class)
      .filter(group -> Objects.equals(groupName, group.getGroupName()))
      .first();
  }
static RegExpGroup resolve(@NotNull String groupName, PsiFile file)