void (@NotNull SuspendContextImpl suspendContext) { final Renderer lastRenderer = descriptor.getLastRenderer(); if (lastRenderer instanceof ArrayRenderer) { ((JavaValue)container).setRenderer(newRenderer, node); node.invokeNodeUpdate(() -> node.getTree().expandPath(node.getPath())); } else if (lastRenderer instanceof CompoundReferenceRenderer compoundRenderer) { final ChildrenRenderer childrenRenderer = compoundRenderer.getChildrenRenderer(); if (childrenRenderer instanceof ExpressionChildrenRenderer) { ExpressionChildrenRenderer.setPreferableChildrenRenderer(descriptor, newRenderer); ((JavaValue)container).reBuild(node); } } }