public List<Script> populateScriptsFromFileList(final List<File> files){
  final List<Script> addedScripts=new ArrayList<>();
  for (  final File scriptFile : files) {
    Script script=scripts.get(Script.getScriptIdFromFile(scriptFile));
    if (script == null) {
      script=new Script();
      createFileBasedScript(script,scriptFile,new ScriptDetails(true,false,scriptFile.getName()));
      addedScripts.add(script);
      addScript(script);
    }
  }
  return addedScripts;
}

public List < Script > populateScriptsFromFileList ( final List < File > files ) { final List < Script > addedScripts = new ArrayList < > ( ) ; for ( final File scriptFile : files ) { Script script = scripts . get ( Script . getScriptIdFromFile ( scriptFile ) ) ; if ( script == null ) { script = new Script ( ) ; createFileBasedScript ( script , scriptFile , new ScriptDetails ( true , false , scriptFile . getName ( ) ) ) ; addedScripts . add ( script ) ; addScript ( script ) ; } } return addedScripts ; }
populates scripts from a list of files . this doesn ' t override existing files .
