void (@NotNull Module module, @NotNull VirtualFile srcRoot) { ModuleRootModificationUtil.updateModel(module, model -> { Sdk sdk = getSdk(); if (sdk != null) { model.setSdk(sdk); } ContentEntry contentEntry = model.addContentEntry(srcRoot); if (markDirForSourcesAsSourceRoot()) { contentEntry.addSourceFolder(srcRoot, getSourceRootType()); } configureModule(module, model, contentEntry); }); }