/** Refresh current form Validates if PHPCS is installed and loads latest code standards */
  void refresh() {
    String csPath = codeSnifferTextField.getText();
    command.setShellScript(csPath);

    if (valid()) {
      store(true);

      statusTextLabel.setText("Activated");
      statusTextLabel.setForeground(new Color(16, 110, 0));

      inputBoxStandard.setEnabled(true);
      checkBoxShowWarnings.setEnabled(true);

      // Updates inputs with new provided data (if any)
      fillForm();
    } else {
      inputBoxStandard.setEnabled(false);
      checkBoxShowWarnings.setEnabled(false);
      checkBoxShowWarnings.setSelected(false);
      statusTextLabel.setForeground(Color.RED);
    }

    versionTextLabel.setText(command.getVersion());
  }