I agree. Use the interface as the type, use \OC\Session\Internal|\OC\Session\Memory in the return value description string.