private void handleClick(@NotNull MouseEvent e) {
    if (e.getButton() != MouseEvent.BUTTON1) {
      return;
    }

    int state = handleEvent(e, false);
    if (state == None) {
      return;
    }

    if (state >= 0) {
      synchronized (myLock) {
        if (myCurrentImage != state) {
          myCurrentImage = state;
          repaint();
        }
      }
    }
    else if (state == FullScreen) {
      handleFullScreen();
    }
    else {
      showNextImage(state == PrevImage);
    }
  }
private void handleClick(@NotNull MouseEvent e)