private static List<String> toStringList(@NotNull String patternsText) {
    return StringUtil.isEmpty(patternsText)
           ? Collections.emptyList()
           : Arrays.stream(patternsText.split(PATTERN_SEPARATOR))
                   .map(s -> s.trim())
                   .filter(s -> !s.isEmpty()).collect(Collectors.toList());
  }
private static List<String> toStringList(@NotNull String patternsText)