Convert MethodWithGlobalDefault to Method
function convertToMethod extends Modelica.Icons.Function; import Modelica_LinearSystems2.Controllers.Types; input Types.MethodWithGlobalDefault globalMethod; input Types.Method sampleMethod; output Types.Method method; end convertToMethod;