void (@NotNull Runnable runnable) { Application application = ApplicationManager.getApplication(); if (application.isWriteAccessAllowed()) { application.invokeLater(runnable); } else { runnable.run(); } }