super.updateItem(profileNode, empty);
TreeItem<ProfileNode> treeItem = getTreeItem();
if (treeItem instanceof ThreadNodeAdapter) {
ThreadNodeAdapter adapter = (ThreadNodeAdapter) treeItem;
setText("Thread " + adapter.getThreadId());
setGraphic(null);
} else if (treeItem instanceof MethodNodeAdapter) {
renderMethodNode(profileNode, empty);
}
}