getInstance

abstract fun getInstance(): Optional<out Any>

Returns an optional instance of the addon if it has been instantiated.

Return

An optional containing the addon instance, or an empty optional if not instantiated.