void () { JpsModule m = addModule("m", copyToProject(SIMPLE_FORM_PATH, "src")); JpsUiDesignerExtensionService.getInstance().getOrCreateUiDesignerConfiguration(myProject).setInstrumentClasses(false); buildAllModules().assertSuccessful(); assertNotInstrumented(m, "xxx/MyForm.class"); buildAllModules().assertUpToDate(); JpsUiDesignerExtensionService.getInstance().getOrCreateUiDesignerConfiguration(myProject).setInstrumentClasses(true); buildAllModules().assertSuccessful(); assertInstrumented(m, "xxx/MyForm.class"); buildAllModules().assertUpToDate(); }