code: private boolean matchesFilter(Category cat, List<String> filterList) throws WikiTitleParsingException {
          String categoryTitle = cat.getTitle().getPlainTitle();
          for (String filter : filterList) {
              if (categoryTitle.startsWith(filter)) {
                  logger.info(categoryTitle + " starts with " + filter + " => removing");
                  return true;
              }
          }
          return false;
      }
docs: Checks whether the category title matches the filter (a filter matches a string, if the string starts with the filter expression).
  @param cat A category.
  @param filterList A list of filter strings.
  @return True, if the category title starts with or is equal to a string in the filter list. False, otherwise.
  @throws WikiTitleParsingException Thrown if errors occurred.