private @Nullable Pair<Matcher, PatternHyperlinkFormat> findMatcher(@NotNull String line) {
    for (PatternHyperlinkFormat linkFormat : myLinkFormats) {
      if (linkFormat.matchRequiredSubstrings(line)) {
        Matcher matcher = linkFormat.getPattern().matcher(line);
        if (matcher.find()) {
          return Pair.create(matcher, linkFormat);
        }
      }
    }
    return null;
  }
private @Nullable Pair<Matcher, PatternHyperlinkFormat> findMatcher(@NotNull String line)