@ApiStatus.Internal
  protected boolean isInLibrarySource(Project project, VirtualFile file) {
    final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(project).getFileIndex();

    return ReadAction.compute(() -> projectFileIndex.isInLibrarySource(file));
  }
@ApiStatus.Internal
  protected boolean isInLibrarySource(Project project, VirtualFile file)