public void addChild(@NotNull MatchResult result) {
    if (result instanceof MatchResultImpl) {
      ((MatchResultImpl)result).parent = this;
    }
    myChildren.add(result);
  }
public void addChild(@NotNull MatchResult result)