List<HighlightRange> (QueryInfo collectedInfo) { if (collectedInfo == null) { return Collections.emptyList(); } final String query = collectedInfo.myText; final int offset = collectedInfo.myCaretOffset; try { return collectedInfo.myIntellisense.fetchHighlighting(query, offset); } catch (Exception e) { return Collections.emptyList(); } }