This time I didn't add this function as an Editor method, since for now it just used here, but let me know if should just make it a method of Editor.