private static @NotNull Set<@NlsSafe String> findHashes(@NotNull @NlsSafe String text) {
    Set<String> result = new HashSet<>();
    Matcher matcher = HASH_PATTERN.matcher(text);
    while (matcher.find()) {
      result.add(matcher.group());
    }
    return result;
  }
private static @NotNull Set<@NlsSafe String> findHashes(@NotNull @NlsSafe String text)