private void dispatchKeyEvent(@NotNull KeyEvent e) {
      if (e.getID() == KeyEvent.KEY_PRESSED && !skipKeyEvent(e)) {
        if (!JBTerminalPanel.this.isFocusOwner()) {
          if (LOG.isDebugEnabled()) {
            LOG.debug("Prevented attempt to process " + KeyStroke.getKeyStrokeForEvent(e) + " by not focused " +
                      getDebugTerminalPanelName() + ", unregistering");
          }
          unregister();
          return;
        }
        if (LOG.isDebugEnabled()) {
          LOG.debug("Consuming " + KeyStroke.getKeyStrokeForEvent(e) + ", registered:" + myRegistered);
        }
        JBTerminalPanel.this.dispatchEvent(e);
      }
    }
private void dispatchKeyEvent(@NotNull KeyEvent e)