void (@NotNull Project project) { final VirtualFile file = WriteAction .compute(() -> LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(filePath))); if (file != null) { file.refresh(false, false); ApplicationManager.getApplication().runReadAction(() -> { FileEditorManager.getInstance(project).openTextEditor(new OpenFileDescriptor(project, file), true); }); } }