void (@NotNull final PsiTreeChangeEvent e) { if (PsiTreeChangeEvent.PROP_ROOTS.equals(e.getPropertyName())) { ApplicationManager.getApplication().assertWriteIntentLockAcquired(); FileEditorManager fileEditorManager = FileEditorManager.getInstance(myProject); final VirtualFile[] openFiles = fileEditorManager.getOpenFiles(); for (int i = openFiles.length - 1; i >= 0; i--) { final VirtualFile file = openFiles[i]; LOG.assertTrue(file != null); fileEditorManager.updateFilePresentation(file); } } }