private static @Nullable OrderEntry libraryEntry(@NotNull Project project, @NotNull PsiFileSystemItem directory) {
    VirtualFile virtualFile = directory.getVirtualFile();
    return LibraryUtil.findLibraryEntry(virtualFile, project);
  }
private static @Nullable OrderEntry libraryEntry(@NotNull Project project, @NotNull PsiFileSystemItem directory)