public static <T> void filterMapkeys(Map<String, T> map, List<Predicate<String>> predicates) {
    if (map == null) {
      return;
    }
    filterMapKeys(map, predicates.stream().reduce(Predicate::or).orElse(x -> false));
  }
filters a given map with list of predicates. All entries of map whose key matches with any
predicate will be removed. Expects map to be modifiable and does the operation on actual map,
so does not return a copy of filtered map.
@param map A map of String key-value pairs
@param predicates List of predicates with patterns to filter the map
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java