QueryInfo (@NotNull PsiFile file, @NotNull Editor editor, boolean hasErrors) { final YouTrackIntellisense intellisense = file.getUserData(YouTrackIntellisense.INTELLISENSE_KEY); if (intellisense == null || !intellisense.getRepository().isConfigured()) { return null; } final String text = file.getText(); final int offset = editor.getCaretModel().getOffset(); //LOG.debug(String.format("Highlighting YouTrack query: '%s' (cursor=%d)", text, offset)); return new QueryInfo(offset, text, intellisense); }