@RunsInCurrentThread private static Pair<Boolean, Point> closeInfo(JInternalFrame internalFrame) { if (internalFrame.isClosed()) return new Pair<Boolean, Point>(true, null); return new Pair<Boolean, Point>(false, closeLocationOf(internalFrame)); }