public static Filter[] computeConsoleFilters(@NotNull ConsoleFilterProvider provider,
                                               @NotNull Project project,
                                               @Nullable ConsoleView consoleView,
                                               @NotNull GlobalSearchScope searchScope) {
    if (consoleView != null && provider instanceof ConsoleDependentFilterProvider) {
      return ((ConsoleDependentFilterProvider)provider).getDefaultFilters(consoleView, project, searchScope);
    }
    else if (provider instanceof ConsoleFilterProviderEx) {
      return ((ConsoleFilterProviderEx)provider).getDefaultFilters(project, searchScope);
    }
    else {
      return provider.getDefaultFilters(project);
    }
  }
public static Filter[] computeConsoleFilters(@NotNull ConsoleFilterProvider provider,
                                               @NotNull Project project,
                                               @Nullable ConsoleView consoleView,
                                               @NotNull GlobalSearchScope searchScope)