void (@NotNull FileEditorManagerEvent e) { alarm.cancelAllRequests(); FileEditor oldEditor = e.getOldEditor(); if (oldEditor instanceof TextEditor) { clearBraces(project, ((TextEditor)oldEditor).getEditor(), alarm); } FileEditor newEditor = e.getNewEditor(); if (newEditor instanceof TextEditor) { updateHighlighted(project, ((TextEditor)newEditor).getEditor(), alarm); } }