private boolean isMiddleMatch(@NotNull String name, int patternIndex, int nameIndex) {
    return isPatternChar(patternIndex - 1, '*') && !isWildcard(patternIndex + 1) &&
           Character.isLetterOrDigit(name.charAt(nameIndex)) && !NameUtilCore.isWordStart(name, nameIndex);
  }
private boolean isMiddleMatch(@NotNull String name, int patternIndex, int nameIndex)