class BaseEditorSearchIndex implements EditorSearchIndex<T> {

    @Override
    public void previousResult() {
        final Optional<T> result = findPreviousElement();
        currentResult = result.orElse(null);
        triggerOnFoundCommand();
        triggerOnSearchPerformedCommand();
    }

}