Methods with the attribute [Execution]
or [Initialization]
in classes attributed with [FunctionBlock]
or [Program]
must not have parameters.
You can also use the provided automatic Code Fix to remove the parameters. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Remove the parameters.