public static List<Workflow> readWorkflowFiles(String[] files){
  if (files == null) {
    return Lists.newArrayList();
  }
  YamlReader<Workflow> reader=new YamlReader<>(Workflow.getYamlConstructor());
  ArrayList<Workflow> result=Lists.newArrayList();
  for (  String file : files) {
    File f=new File(file);
    result.add(reader.read(f));
  }
  return result;
}

public static List < Workflow > readWorkflowFiles ( String [ ] files ) { if ( files == null ) { return Lists . newArrayList ( ) ; } YamlReader < Workflow > reader = new YamlReader < > ( Workflow . getYamlConstructor ( ) ) ; ArrayList < Workflow > result = Lists . newArrayList ( ) ; for ( String file : files ) { File f = new File ( file ) ; result . add ( reader . read ( f ) ) ; } return result ; }
reads in a list of workflow files
