private static boolean hasStarPattern(@NotNull NameClass patternClass) {
    return !patternClass.isOpen() && ContainerUtil.find(patternClass.listNames(), pattern ->
      pattern.getLocalPart().endsWith(STAR_PATTERN_SUFFIX)) != null;
  }
private static boolean hasStarPattern(@NotNull NameClass patternClass)