Fix method createMethodDeclaration