IDEA-80056 multiple carets prototype - cherry picked IDEA-106300