private static void addPredicate(SubstitutionHandler handler, @NotNull MatchPredicate predicate) {
    handler.setPredicate(handler.getPredicate() == null ? predicate : new AndPredicate(handler.getPredicate(), predicate));
  }
private static void addPredicate(SubstitutionHandler handler, @NotNull MatchPredicate predicate)