List<Caret> () { List<Caret> hostCarets = myDelegate.getAllCarets(); List<Caret> carets = new ArrayList<>(hostCarets.size()); for (Caret hostCaret : hostCarets) { carets.add(createInjectedCaret(hostCaret)); } return carets; }