code: public static boolean endsWithIgnoreCase(@Nullable final String str,
        @Nullable final String suffix) {
      return str != null && suffix != null && str.length() >= suffix.length()
          && str.regionMatches(true, str.length() - suffix.length(), suffix, 0, suffix.length());
    }
docs: Test if the given {@code String} ends with the specified suffix, ignoring upper/lower case.
  
  @param str the {@code String} to check
  @param suffix the suffix to look for
  @see java.lang.String#endsWith