Collection<DisposableWrapper> (@NotNull Collection<? extends E> collection) { if (collection.isEmpty()) { return Collections.emptyList(); } List<DisposableWrapper> result = new ArrayList<>(collection.size()); for (E obj : collection) { result.add(new DisposableWrapper(obj)); } return result; }