void (@Nullable VirtualFile eventFile) { // if dialog is modal and refresh called not from dispatch thread then // fireEvents in RefreshQueueImpl will not be triggered because of wrong modality state inside those thread -> defaultMS == NON_MODAL final FilePresentationModel filePresentationModel = myRecentPathFileChange.get(); VirtualFile filePresentationVf = filePresentationModel != null ? filePresentationModel.getVf() : null; if (filePresentationVf != null && (eventFile == null || filePresentationVf.equals(eventFile))) { filePresentationVf.refresh(false, false); queueRequest(); } }