void (final String name) { if (Comparing.strEqual(myScope.getScopeId(), name)){ return; } final PackageSet packageSet = myScope.getValue(); myScope = new NamedScope(name, myIcon, packageSet != null ? packageSet.createCopy() : null); }