void DisposeCaret() { if (caretCreated) { caretCreated = false; caretImplementation.Hide(); caretImplementation.Destroy(); } }