code: public String getVariableShortName(VariableElement var) {
      String baseName = getVariableBaseName(var);
      if (var.getKind().isField() && !ElementUtil.isGlobalVar(var)) {
        return baseName + '_';
      }
      return baseName;
    }
docs: Gets the non-qualified variable name, with underscore suffix.