void (@NotNull ASTNode child) { if (child.getElementType() == JavaElementType.TYPE) { JavaSourceUtil.deleteSeparatingComma(this, child); } super.deleteChildInternal(child); if (getTypeParameterElements().length == 0){ ASTNode lt = findChildByRole(ChildRole.LT_IN_TYPE_LIST); if (lt != null){ deleteChildInternal(lt); } ASTNode gt = findChildByRole(ChildRole.GT_IN_TYPE_LIST); if (gt != null){ deleteChildInternal(gt); } } }