code: private static boolean variableIsParameter(Var variable) {
      Node variableParent = variable.getParentNode();
  
      return variableParent != null && variableParent.isParamList();
    }
docs: Returns true if the variable is a formal parameter.