RefElementNode (@NotNull InspectionToolPresentation presentation, InspectionTreeModel model, InspectionTreeNode topParent, boolean showStructure) { RefEntityContainer<Descriptor> owner = getOwner(); InspectionTreeNode parent; if (owner == null) { parent = topParent; } else { parent = owner.createNode(presentation, model, topParent, showStructure); if (!showStructure) { return (RefElementNode)parent; } } return model.createRefElementNode(myEntity, () -> presentation.createRefNode(myEntity, model, parent), parent); }