private static @Nullable DnDEventImpl resetEvent(DnDEvent event) {
    if (event == null) return null;
    event.cleanUp();
    return null;
  }
private static @Nullable DnDEventImpl resetEvent(DnDEvent event)