private static @NotNull @NlsSafe String getPresentableContentRootPath(@NotNull PsiDirectory directory,
                                                                        String @NotNull [] pathToCreate) {
    VirtualFile f = directory.getVirtualFile();
    Project project = directory.getProject();

    String path = f.getPath();
    if (pathToCreate.length > 0) {
      path += VFS_SEPARATOR_CHAR + StringUtil.join(pathToCreate, VFS_SEPARATOR);
    }
    String presentablePath = f.getFileSystem().extractPresentableUrl(path);

    return displayUrlRelativeToProject(f, presentablePath, project, true, true);
  }
private static @NotNull @NlsSafe String getPresentableContentRootPath(@NotNull PsiDirectory directory,
                                                                        String @NotNull [] pathToCreate)