protected Condition<PsiElement> getBorderOffsetFilter(final int offset) {
    return element -> element.getTextRange().getEndOffset() == offset;
  }
protected Condition<PsiElement> getBorderOffsetFilter(final int offset)