private boolean isGrayedHyperlink(@NotNull VirtualFile file) {
    if (myProject.isDefault()) return true;
    
    ProjectFileIndex fileIndex = getFileIndex();
    return !fileIndex.isInContent(file) || fileIndex.isInLibrary(file);
  }
private boolean isGrayedHyperlink(@NotNull VirtualFile file)