public void unregisterReferenceProvider(@NotNull Class<?> scope, @NotNull PsiReferenceProvider provider) {
    SimpleProviderBinding binding = myBindingsMap.get(scope);
    if (binding != null) {
      binding.unregisterProvider(provider);
      if (binding.isEmpty()) {
        myBindingsMap.remove(scope);
      }
    }
    clearBindingsCache();
  }
public void unregisterReferenceProvider(@NotNull Class<?> scope, @NotNull PsiReferenceProvider provider)