void (@NotNull Module module, @NotNull VirtualFile dir) { ModuleRootModificationUtil.updateModel(module, model -> ApplicationManager.getApplication().runReadAction(() -> { findContentEntryWithAssertion(model, dir).addExcludeFolder(dir); })); }