public static Position getPosition(final @NotNull PsiElement element, final int startOffset, final int endOffset) {
    final int offset = element.getTextOffset();
    if (offset < startOffset) {
      return Position.BEFORE;
    }
    if (element.getTextOffset() < endOffset) {
      return Position.INSIDE;
    }
    return Position.AFTER;
  }
public static Position getPosition(final @NotNull PsiElement element, final int startOffset, final int endOffset)