void (@Nullable Window window) { EDT.assertIsEdt(); if (window != null) { window.toFront(); try { Desktop.getDesktop().requestForeground(false); } catch (Exception e) { LOG.error(e); } } else { requestFocus(); } }