private String[] parseLinesUntilEndOfBlock(final int startLineNumber,final String startLine,final String[] lines,final List<LocalizableMessage> warnings){
  final List<String> lineList=new ArrayList<>();
  String line=startLine;
  lineList.add(line);
  int lineNumber=startLineNumber;
  while (true) {
    lineNumber++;
    if (lineNumber >= lines.length) {
      break;
    }
    line=lines[lineNumber];
    if (line.length() == 0) {
      break;
    }
    line=replaceConstants(line,lineNumber,constants,warnings);
    lineList.add(line);
  }
  return lineList.toArray(new String[lineList.size()]);
}

private String [ ] parseLinesUntilEndOfBlock ( final int startLineNumber , final String startLine , final String [ ] lines , final List < LocalizableMessage > warnings ) { final List < String > lineList = new ArrayList < > ( ) ; String line = startLine ; lineList . add ( line ) ; int lineNumber = startLineNumber ; while ( true ) { lineNumber ++ ; if ( lineNumber >= lines . length ) { break ; } line = lines [ lineNumber ] ; if ( line . length ( ) == 0 ) { break ; } line = replaceConstants ( line , lineNumber , constants , warnings ) ; lineList . add ( line ) ; } return lineList . toArray ( new String [ lineList . size ( ) ] ) ; }
parses lines of a block until the block ends ( with an empty line ) or lines ends .
