check Asset Presence
Using reflection, checks the ability to use doc straightener with its assets. Returns an instance of Result:
Result.Success with
truein it if the asset is present or not needed (e.g., straightening mode is NONE)Result.ComponentUnavailableError with a proper ready-to-use message to show to customer's dev.
Throws
if you forgot to set the checker implementation (see comment in the code).