void () { final DependencyValidationManager validationManager = DependencyValidationManager.getInstance(myProject); DependencyRule[] rules = validationManager.getAllRules(); final ArrayList<DependencyRule> denyList = new ArrayList<>(); final ArrayList<DependencyRule> allowList = new ArrayList<>(); for (DependencyRule rule : rules) { if (rule.isDenyRule()) { denyList.add(rule.createCopy()); } else { allowList.add(rule.createCopy()); } } myDenyRulesModel.setItems(denyList); myAllowRulesModel.setItems(allowList); mySkipImports.setSelected(validationManager.skipImportStatements()); }