private void clearParents() { for (ModuleReference parent : parents) { parent.decRef(); } parents.clear(); }