private static @Nullable BeforeRunTaskProvider<BeforeRunTask<?>> getProvider(@NotNull Project project, Key<?> key) {
    for (Iterator<BeforeRunTaskProvider<BeforeRunTask<?>>> it = BeforeRunTaskProvider.EP_NAME.asSequence(project).iterator();
         it.hasNext(); ) {
      BeforeRunTaskProvider<BeforeRunTask<?>> provider = it.next();
      if (provider.getId() == key) {
        return provider;
      }
    }
    return null;
  }
private static @Nullable BeforeRunTaskProvider<BeforeRunTask<?>> getProvider(@NotNull Project project, Key<?> key)