List<BaseInjection> (final List<InjInfo> list) { return new AbstractList<>() { @Override public BaseInjection get(final int index) { return list.get(index).injection; } @Override public int size() { return list.size(); } }; }