HgLogProvider (@NotNull Project project) { List<VcsLogProvider> providers = ContainerUtil.filter(VcsLogProvider.LOG_PROVIDER_EP.getExtensions(project), provider -> provider.getSupportedVcs().equals(HgVcs.getKey())); TestCase.assertEquals("Incorrect number of HgLogProviders", 1, providers.size()); return (HgLogProvider)providers.get(0); }