protected static void appendDecorations(int basePos,String sourceCode,CreateSimpleLexer langHandler,List<Object> out){
  if (sourceCode == null) {
    throw new NullPointerException("argument 'sourceCode' cannot be null");
  }
  Job job=new Job();
  job.setSourceCode(sourceCode);
  job.setBasePos(basePos);
  langHandler.decorate(job);
  out.addAll(job.getDecorations());
}

protected static void appendDecorations ( int basePos , String sourceCode , CreateSimpleLexer langHandler , List < Object > out ) { if ( sourceCode == null ) { throw new NullPointerException ( "argument 'sourceCode' cannot be null" ) ; } Job job = new Job ( ) ; job . setSourceCode ( sourceCode ) ; job . setBasePos ( basePos ) ; langHandler . decorate ( job ) ; out . addAll ( job . getDecorations ( ) ) ; }
apply the given language handler to sourcecode and add the resulting decorations to out .
