@Contract("null,_ -> false")
  public static boolean isSuitablePredicate(RegExpPredicate predicate, @NotNull SubstitutionHandler handler) {
    return predicate != null && handler.getMinOccurs() != 0 && predicate.couldBeOptimized();
  }
@Contract("null,_ -> false")
  public static boolean isSuitablePredicate(RegExpPredicate predicate, @NotNull SubstitutionHandler handler)