docs: private static boolean endsWith(String str, String suffix, boolean ignoreCase) {
          if (str == null || suffix == null) {
              return (str == null && suffix == null);
          }
          if (suffix.length() > str.length()) {
              return false;
          }
          int strOffset = str.length() - suffix.length();
          return str.regionMatches(ignoreCase, strOffset, suffix, 0, suffix.length());
      }