private boolean hasNothingToUpdate() {
    final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject);
    if (!vcsManager.hasActiveVcss()) return true;

    VcsDirtyScopeManagerImpl dirtyScopeManager = VcsDirtyScopeManagerImpl.getInstanceImpl(myProject);
    return !dirtyScopeManager.hasDirtyScopes();
  }
private boolean hasNothingToUpdate()