Module () { Project project = myFixtureBuilder.getFixture().getProject(); Assert.assertNotNull(project); Path moduleFilePath = ((ProjectStoreOwner)project).getComponentStore().getProjectBasePath().getParent().resolve(getNextIndex() + ModuleFileType.DOT_DEFAULT_EXTENSION); return ModuleManager.getInstance(project).newModule(moduleFilePath, myModuleTypeProducer.produce().getId()); }