void () { Module tests = createModule("tests"); TestModuleProperties moduleProperties = TestModuleProperties.getInstance(tests); ApplicationManager.getApplication().runWriteAction(() -> { moduleProperties.setProductionModuleName(myModule.getName()); }); assertSame(myModule, moduleProperties.getProductionModule()); }