@Override
    public void recordTypingLatency(@NotNull Editor editor, String action, long latencyMs) {
      if (editor == myCurrentEditor) {
        myLatencyRecord.update(action, (int) latencyMs);
      }
    }
@Override
    public void recordTypingLatency(@NotNull Editor editor, String action, long latencyMs)