void () { MavenSettings s = new MavenSettings(myProject); s.createComponent(); s.reset(); try { assertFalse(s.isModified()); } finally { s.disposeUIResources(); //prevent memory leaks } for (Configurable each : s.getConfigurables()) { each.createComponent(); each.reset(); try { assertFalse(each.isModified()); } finally { each.disposeUIResources(); //prevent memory leaks } } }