docs: public static boolean simpleMatch(String pattern, String str) {
          if (pattern == null || str == null) {
              return false;
          }
          int firstIndex = pattern.indexOf('*');
          if (firstIndex == -1) {
              return pattern.equals(str);
          }
          if (firstIndex == 0) {
              if (pattern.length() == 1) {
                  return true;
              }
              int nextIndex = pattern.indexOf('*', firstIndex + 1);
              if (nextIndex == -1) {
                  return str.endsWith(pattern.substring(1));
              }
              else if (nextIndex == 1) {
                  // Double wildcard "**" - skipping the first "*"
                  return simpleMatch(pattern.substring(1), str);
              }
              String part = pattern.substring(1, nextIndex);
              int partIndex = str.indexOf(part);
              while (partIndex != -1) {
                  if (simpleMatch(pattern.substring(nextIndex), str.substring(partIndex + part.length()))) {
                      return true;
                  }
                  partIndex = str.indexOf(part, partIndex + 1);
              }
              return false;
          }
          return (str.length() >= firstIndex && pattern.substring(0, firstIndex).equals(str.substring(0, firstIndex)) && simpleMatch(
                  pattern.substring(firstIndex), str.substring(firstIndex)));
      }