Add support of form locator by name. 

I got match error that there are some Forms without id and can only be identified by name, so I added a quick fix for that. There are still many match errors during DescriminatorType pattern match, and need to be fixed. 

I also format the file using Intellijs' default formating.