void (@NotNull VirtualFile virtualFile) { FileEditorManagerEx fileEditorManager = (FileEditorManagerEx)FileEditorManager.getInstance(myProject); final VirtualFile currentFile = fileEditorManager.getCurrentFile(); if (Objects.equals(virtualFile, currentFile)) { fileEditorManager.updateFilePresentation(currentFile); } }