Optional.of(entity).map(Entity::getInfo).map(EntityInfo::getTags).map(List::contains(Tag.BLACKLIST))
But I got: Non-static method cannot be referenc