static synchronized void processAWTEvent(AWTEvent e) {
    if (e instanceof InputEvent) {
      processInputEvent((InputEvent)e);
      return;
    }

    final int eid = e.getID();
    if (eid == FocusEvent.FOCUS_GAINED ||
        eid == FocusEvent.FOCUS_LOST ||
        eid == WindowEvent.WINDOW_ACTIVATED ||
        eid == WindowEvent.WINDOW_DEACTIVATED ||
        eid == WindowEvent.WINDOW_LOST_FOCUS ||
        eid == WindowEvent.WINDOW_GAINED_FOCUS
    ) {
      processFocusEvent(e);
    }
  }
static synchronized void processAWTEvent(AWTEvent e)