public TristateResult checkPermission(String permission, CheckOrigin origin) {
        // get the result
        TristateResult result = this.lookupCache.get(permission);

        // log this permission lookup to the verbose handler
        this.plugin.getVerboseHandler().offerPermissionCheckEvent(origin, this.metadata.getVerboseCheckInfo(), this.metadata.getQueryOptions(), permission, result);

        // return the result
        return result;
    }
Performs a permission check against this calculator.

<p>The result is calculated using the calculators backing 'processors'.</p>

@param permission the permission to check
@param origin marks where this check originated from
@return the result
common/src/main/java/me/lucko/luckperms/common/calculator/PermissionCalculator.java