private static boolean childContainsOffset(@NotNull PsiElement child, int offsetInTag) {
    return child.getStartOffsetInParent() <= offsetInTag && offsetInTag <= child.getStartOffsetInParent() + child.getTextLength();
  }
private static boolean childContainsOffset(@NotNull PsiElement child, int offsetInTag)