     projectDocument.error(String(format: fmt, errorInfo))
   }
 
-  func didClickRemoveSelectedConfigs(sender: AnyObject?) {
+  private func didClickRemoveSelectedConfigs(sender: AnyObject?) {
     let document = representedObject as! TulsiProjectDocument
     let selectedConfigNames = configArrayController.selectedObjects as! [String]
     document.deleteConfigsNamed(selectedConfigNames)

    projectDocument.error(String(format: fmt, errorInfo))
  }

  // MARK: - Private methods

  func didClickAddConfig(sender: AnyObject?) {
    let projectDocument = representedObject as! TulsiProjectDocument

    // Adding a config to a project with no bazel packages is disallowed.
    guard let bazelPackages = projectDocument.bazelPackages where !bazelPackages.isEmpty else {
      NSBeep()
      return
    }

    case Add = 0
    case Remove = 1
  }

  // Context indicating that a new config should be added after a document save completes.
  private static var PostSaveContextAddConfig = 0

  @IBOutlet var configArrayController: NSArrayController!
  @IBOutlet weak var addRemoveSegmentedControl: NSSegmentedControl!
