List<String> () { Set<PluginId> list = DisabledPluginsState.Companion.getDisabledIds(); return new AbstractList<String>() { //<editor-fold desc="Just a list-like immutable wrapper over a set; move along."> @Override public boolean contains(Object o) { return list.contains(o); } @Override public int size() { return list.size(); } @Override public String get(int index) { if (index < 0 || index >= list.size()) { throw new IndexOutOfBoundsException("index=" + index + " size=" + list.size()); } Iterator<PluginId> iterator = list.iterator(); for (int i = 0; i < index; i++) { iterator.next(); } return iterator.next().getIdString(); } //</editor-fold> }; }