clearInstance

protected open fun clearInstance(instance: T): T

Clear instance’s state before reuse: reset pointers, counters and so on