void (@Nullable final Icon icon, @NotNull final XValuePresentation presentation, final boolean hasChildren, final ConfigurableXValueNode node) { if (DebuggerUIUtil.isObsolete(node)) { return; } Application application = ApplicationManager.getApplication(); if (application.isDispatchThread()) { node.applyPresentation(icon, presentation, hasChildren); } else { Runnable updater = () -> node.applyPresentation(icon, presentation, hasChildren); if (node instanceof XDebuggerTreeNode) { ((XDebuggerTreeNode)node).invokeNodeUpdate(updater); } else { application.invokeLater(updater); } } }