void (@NotNull ProgressIndicator indicator) { try { assertFalse(ApplicationManager.getApplication().isReadAccessAllowed()); assertFalse(ApplicationManager.getApplication().isDispatchThread()); ApplicationManager.getApplication().assertIsNonDispatchThread(); } catch (Exception e) { exception = e; } }