ContentEntry contentEntry = modifiableModel.addContentEntry(getContentRoot());
VirtualFile src = getContentRoot().findChild("src");
if (src != null) {
contentEntry.addSourceFolder(src, false);
}
modifiableModel.commit();
}
protected VirtualFile getContentRoot() {
File file = getTestContentFile();
return LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file);