void (@NotNull VirtualFile file) { FileViewProvider viewProvider = fileManager.findCachedViewProvider(file); if (viewProvider == null) { project.getService(PsiVFSListener.class).handleVfsChangeWithoutPsi(file); } else { ApplicationManager.getApplication().runWriteAction((ExternalChangeAction)() -> { if (FileDocumentManagerImpl.recomputeFileTypeIfNecessary(file)) { fileManager.forceReload(file); } else { fileManager.reloadPsiAfterTextChange(viewProvider, file); } }); } }