void (@NotNull String title) { if (myWindow == null) return; if (myWindow instanceof JDialog) ((JDialog)myWindow).setTitle(title); if (myWindow instanceof JFrame) ((JFrame)myWindow).setTitle(title); }