private static int extractName(@NotNull CharSequence path, int endOffset) {
    int i = StringUtil.lastIndexOf(path, '/', 0, endOffset);
    if (i != -1 && PathUtilRt.isWindowsUNCRoot(path, i)) {
      // UNC
      return 0;
    }
    return i + 1;
  }
private static int extractName(@NotNull CharSequence path, int endOffset)