public @NotNull List<String> getPatterns() {
    synchronized (myPatternLock) {
      return myPatterns.stream().sorted().collect(Collectors.toList());
    }
  }
public @NotNull List<String> getPatterns()