NamedScope[] () { final DependencyValidationManager manager = DependencyValidationManager.getInstance(myProject); final Collection<NamedScope> model = new ArrayList<>(Arrays.asList(manager.getScopes())); for (PackageSet unnamedScope : manager.getUnnamedScopes().values()) { model.add(new NamedScope.UnnamedScope(unnamedScope)); } return model.toArray(NamedScope.EMPTY_ARRAY); }