void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof PsiComment && element.getText().equals("//XXX")) { try { iDidIt(); holder.newAnnotation(HighlightSeverity.ERROR, "xxx") .range(new TextRange(0,1)) .create(); fail("Must have rejected crazy annotation range"); } catch (PluginException ignored) { } } }