private boolean isAvailableForFunction(PyFunction function) {
    if (function.getDocStringValue() != null) {
      if (PyDocstringGenerator.forDocStringOwner(function).withInferredParameters(false).hasParametersToAdd()) {
        setText(PyPsiBundle.message("INTN.add.parameters.to.docstring"));
        return true;
      }
      else {
        return false;
      }
    }
    else {
      setText(PyPsiBundle.message("INTN.insert.docstring.stub"));
      return true;
    }
  }
private boolean isAvailableForFunction(PyFunction function)