void (PsiFile hostCopy, OffsetMap hostMap) { PsiUtilCore.ensureValid(hostCopy); if (hostMap.getOffset(CompletionInitializationContext.START_OFFSET) > hostCopy.getTextLength()) { throw new AssertionError("startOffset outside the host file: " + hostMap.getOffset(CompletionInitializationContext.START_OFFSET) + "; " + hostCopy); } }