public ModelsCommand(LogFormat format, CharSequence buffer, Less less) {
LineIndex li = format.getLineIndex(buffer);
models.add(li);
// TODO move filtering to config and allow choices
Filter filter = new PriorityFilter();
LineIndex filteredIndex = new FilteredLineIndex(li, filter);
models.add(filteredIndex);
less.setLineIndex(getNextLineModel());
}