docs: private int getMatchingPoint(String pattern, String itemName) {
          int index = pattern.indexOf('*');
          if (index == -1) {
              return -1;
          }
  
          String firstPart = pattern.substring(0, index);
          int indexFirstPart = itemName.indexOf(firstPart, 0);
          if (indexFirstPart == -1) {
              return -1;
          }
  
          String secondPart = pattern.substring(index + 1);
          int indexSecondPart = itemName.indexOf(secondPart, index + 1);
          if (indexSecondPart == -1) {
              return -1;
          }
  
          return firstPart.length() + secondPart.length();
      }