void (boolean rebuild) { if (rebuild) { cleanUpStructureCaches(); } if (EventQueue.isDispatchThread()) { super.queueUpdate(); } else { ApplicationManager.getApplication().invokeLater(() -> { if (!isDisposed()) { super.queueUpdate(); } }); } }