List<EntryPoint> () { List<EntryPoint> extensions = EntryPointsManagerBase.DEAD_CODE_EP_NAME.getExtensionList(); List<EntryPoint> deadCodeAddIns = new ArrayList<>(extensions.size()); for (EntryPoint entryPoint : extensions) { try { EntryPoint clone = entryPoint.clone(); Element element = entryPointElements.get(entryPoint.getDisplayName()); if (element != null) { clone.readExternal(element); } deadCodeAddIns.add(clone); } catch (ProcessCanceledException e) { throw e; } catch (Exception e) { LOG.error(e); } } deadCodeAddIns.sort((o1, o2) -> o1.getDisplayName().compareToIgnoreCase(o2.getDisplayName())); return deadCodeAddIns; }