Some refactoring for reusing GenerateEquals UI in scala plugin