protected boolean hasSources() {
   for (LanguageSourceSet sourceSet : getSource()) {
     if (!sourceSet.getSource().isEmpty()) {
       return true;
     }
     if (sourceSet.hasBuildDependencies()) {
       return true;
     }
   }
   return false;
 }
 public static void addSourceSetToCompile(
     PlatformScalaCompile compile, LanguageSourceSet sourceSet) {
   compile.dependsOn(sourceSet);
   compile.source(sourceSet.getSource());
 }