private void fireRepaintEvent() {
    if (state) {
      UIUtil.invokeAndWaitIfNeeded(this::findMousePositionAndRepaint);
      timer.setUp(this::fireRepaintEvent, QUERY_DELAY);
    }
    else {
      painter.removePainter();
    }
  }
private void fireRepaintEvent()