AbstractVcs[] () { List<String> names; synchronized (myLock) { names = new ArrayList<>(myExtensions.keySet()); } names.sort(String::compareTo); return ContainerUtil.mapNotNull(names, this::getByName) .toArray(new AbstractVcs[0]); }