private static boolean dispatch(Component component, @NotNull MouseEvent event) {
    component.dispatchEvent(event);
    return event.isConsumed();
  }
private static boolean dispatch(Component component, @NotNull MouseEvent event)