void (final List<TreeNode> children, final NodeLoadState oldState) { myChildren.clear(); for (TreeNode child : children) { if (child instanceof RepositoryTreeNode) { ((RepositoryTreeNode) child).setParentNode(this); myChildren.add(child); myChildrenLoadState = oldState; } else if (child instanceof SimpleTextNode node) { myChildren.add(new SimpleTextNode(node.getText(), node.isError())); myChildrenLoadState = oldState; } } myModel.reload(this); }