private static boolean hasStarMatch(@NotNull NameClass patternClass, @NotNull QName qname) {
    return !patternClass.isOpen() && ContainerUtil.find(patternClass.listNames(), pattern -> {
      String patternLocal = pattern.getLocalPart();
      if (patternLocal.endsWith(STAR_PATTERN_SUFFIX)
          && Objects.equals(qname.getNamespaceURI(), pattern.getNamespaceURI())) {
        String prefixPattern = patternLocal.substring(0, patternLocal.length() - STAR_PATTERN_SUFFIX.length());
        String name = qname.getLocalPart();
        return name.length() > prefixPattern.length() && name.startsWith(prefixPattern);
      }
      return false;
    }) != null;
  }
private static boolean hasStarMatch(@NotNull NameClass patternClass, @NotNull QName qname)