additionalInfo = AdditionalProjectInterpreterInfo.getAdditionalInfoForProject(natureToAdd);
} catch (MisconfigurationException e) {
throw new RuntimeException(e);
}
additionalInfo.addAstInfo(ast, new ModulesKey(modName, f), false);
ModulesManager modulesManager = (ModulesManager) natureToAdd.getAstManager().getModulesManager();
SourceModule mod = (SourceModule) AbstractModule.createModule(ast, f, modName);
modulesManager.doAddSingleModule(new ModulesKey(modName, f), mod);
}