void (@NotNull FileEditorManagerEvent event) { logCurrentLatency(); FileEditor editor = event.getNewEditor(); if (editor instanceof TextEditor) { myCurrentFile = event.getNewFile(); myCurrentEditor = ((TextEditor)editor).getEditor(); myLatencyRecord = new LatencyDistributionRecord(new LatencyDistributionRecordKey("FUS")); } else { myCurrentEditor = null; myLatencyRecord = null; } }