void (@NotNull PsiReferenceProvider provider) { for (List<ProviderInfo<ElementPattern<?>>> list : myNamesToProvidersMap.values()) { list.removeIf(trinity -> trinity.provider.equals(provider)); } for (List<ProviderInfo<ElementPattern<?>>> list : myNamesToProvidersMapInsensitive.values()) { list.removeIf(trinity -> trinity.provider.equals(provider)); } }