{
Node foot = entry.getTree().getFoot();
if (foot != null && foot.hasCategory(category))
{
Node anchor = entry.getTree().getMainAnchor();
GornAddress footAddress = GornAddress.getAddress(foot, entry.getTree());
GornAddress anchorAddress = GornAddress.getAddress(anchor, entry.getTree());
boolean leftOf = footAddress.isLeftOf(anchorAddress);
if (footType == FootType.LEFT && leftOf)
ret.add(entry);
if (footType == FootType.RIGHT && !leftOf)
ret.add(entry);