JS1124: Only a constructor function can have the same name as the class it appears in
A method that is not a constructor has the same name as its class.
To correct this error
Make the method a constructor by eliminating the return type and the return statements.
Rename the method.