private void validateEditVariablesButton() {
    boolean hasVariables = !parseVariables().isEmpty();
    myEditVariablesButton.setEnabled(hasVariables);
    myEditVariablesButton.setToolTipText(hasVariables ? null : CodeInsightBundle.message("tooltip.disabled.because.the.template.has.no.variables.surrounded.with.signs"));
  }
private void validateEditVariablesButton()