code: public static String rejectCodePoint(String string, CodePointPredicate predicate)
      {
          int size = string.length();
          StringBuilder buffer = new StringBuilder(string.length());
          for (int i = 0; i < size; )
          {
              int codePoint = string.codePointAt(i);
              if (!predicate.accept(codePoint))
              {
                  buffer.appendCodePoint(codePoint);
              }
              i += Character.charCount(codePoint);
          }
          return buffer.toString();
      }
docs: @return a new string excluding all of the code points that return true for the specified {@code predicate}.
  
  @since 7.0