docs: private static boolean matchesPatternList(final String str, final List<Pattern> patterns) {
          if (patterns != null) {
              for (final Pattern pattern : patterns) {
                  if (pattern.matcher(str).matches()) {
                      return true;
                  }
              }
          }
          return false;
      }