void (@NotNull final VirtualFile file) { ApplicationManager.getApplication().assertReadAccessAllowed(); FileBasedIndex fileBasedIndex = FileBasedIndex.getInstance(); if (fileBasedIndex instanceof FileBasedIndexImpl) { ((FileBasedIndexImpl) fileBasedIndex).requestReindex(file, false); } for (final Project project : ProjectManager.getInstance().getOpenProjects()) { reloadPsi(file, project); } }