public OptionalInt getWeight() {
        IntegerResult<WeightNode> result = getWeightResult();
        return result.isNull() ? OptionalInt.empty() : OptionalInt.of(result.intResult());
    }
Removes temporary permissions that have expired

@return true if permissions had expired and were removed
common/src/main/java/me/lucko/luckperms/common/model/PermissionHolder.java