int (@NotNull Environment env, @Nullable String logMessage) { Collection<PsiElement> children = myExtractor.apply(getFile()); if (children.isEmpty()) { return super.generateDocOffset(env, logMessage); } List<Generator<Integer>> generators = ContainerUtil.map(children, stmt -> { TextRange range = stmt.getTextRange(); return Generator.integers(range.getStartOffset(), range.getEndOffset()).noShrink(); }); return env.generateValue(Generator.anyOf(generators), logMessage); }