void (@NotNull Runnable command) { Application app = ApplicationManager.getApplication(); if (app == null) { EventQueue.invokeLater(command); } else { app.invokeLater(command, ModalityState.any()); } }