@Override
 public void setFilter(@NotNull VcsLogFilter filter) {
   ApplicationManager.getApplication().assertIsDispatchThread();
   if (filter instanceof VcsLogBranchFilter) {
     myBranchFilterModel.setFilter((VcsLogBranchFilter) filter);
     JComponent toolbar = myUi.getMainFrame().getToolbar();
     toolbar.revalidate();
     toolbar.repaint();
   }
 }
 @NotNull
 @Override
 public VcsLogFilterCollection getFilters() {
   ApplicationManager.getApplication().assertIsDispatchThread();
   Pair<VcsLogTextFilter, VcsLogHashFilter> filtersFromText =
       getFiltersFromTextArea(myTextFilterModel.getFilter());
   return new VcsLogFilterCollectionImpl(
       myBranchFilterModel.getFilter(),
       myUserFilterModel.getFilter(),
       filtersFromText.second,
       myDateFilterModel.getFilter(),
       filtersFromText.first,
       myStructureFilterModel.getFilter() == null
           ? null
           : myStructureFilterModel.getFilter().getStructureFilter(),
       myStructureFilterModel.getFilter() == null
           ? null
           : myStructureFilterModel.getFilter().getRootFilter());
 }