void (final PsiTreeChangeEvent event) { final PsiFile psiFile = event.getFile(); if (psiFile == null) return; VirtualFile file = psiFile.getVirtualFile(); if (file == null) return; FileEditorManagerEx fileEditorManager = (FileEditorManagerEx)FileEditorManager.getInstance(myProject); FileEditor[] editors = fileEditorManager.getAllEditors(file); if (editors.length == 0) return; final VirtualFile currentFile = fileEditorManager.getCurrentFile(); if (currentFile != null && Comparing.equal(psiFile.getVirtualFile(), currentFile)) { fileEditorManager.updateFilePresentation(currentFile); } }