@RunsInCurrentThread
 private static @Nonnull Pair<Boolean, Point> iconifyInfo(@Nonnull JInternalFrame internalFrame) {
   boolean iconified = isIconified(internalFrame);
   if (iconified) {
     return Pair.of(true, null);
   }
   return Pair.of(iconified, findIconifyLocation(internalFrame));
 }
 @RunsInCurrentThread
 private static @Nonnull Pair<Container, Point> findMaximizeLocation(
     @Nonnull JInternalFrame internalFrame) {
   Container clickTarget = internalFrame.isIcon() ? internalFrame.getDesktopIcon() : internalFrame;
   Point location = maximizeButtonLocation(checkNotNull(clickTarget));
   return Pair.of(clickTarget, location);
 }