List<DocumentationProvider> () { List<DocumentationProvider> providers = myProviders; List<DocumentationProvider> extensions = EP_NAME.getExtensionList(); Collection<DocumentationProvider> result = new LinkedHashSet<>(providers.size() + extensions.size()); result.addAll(providers); result.addAll(extensions); return List.copyOf(result); }