void (DItemElement element) { DClassElement classElement = getClassElementByItem(element); if (classElement == null) return; if (element instanceof DPropertyElement) { removePropertyElement(((DPropertyElement) element)); } else if (element instanceof DMethodElement) { removeMethodElement(((DMethodElement) element)); } removeItemFromTree(element, classElement); }