RubyParser parser;
if(configuration.getVersion() == CompatVersion.RUBY1_8) {
parser = new Ruby18Parser();
}
else {
parser = new Ruby19Parser();
}
RubyParserWarningsCollector warnings = new RubyParserWarningsCollector();
parser.setWarnings(warnings);
LexerSource lexerSource = LexerSource.getSource(file, content, configuration);