LayoutFileSet (FileSet set) { if (set instanceof IdeaModule) { return new IdeaModule((IdeaModule) set); } if (set instanceof IdeaModuleTests) { return new IdeaModuleTests((IdeaModuleTests) set); } if (set instanceof ZipFileSet) { return new LayoutFileSet((ZipFileSet) set.clone()); } else { return new LayoutFileSet((FileSet) set.clone()); } }