UsageInfoFactory (final PsiElement element, final String newQName) { return (usage, startOffset, endOffset) -> { int start = usage.getTextRange().getStartOffset(); return NonCodeUsageInfo.create(usage.getContainingFile(), start + startOffset, start + endOffset, element, newQName); }; }