move common code to LanguageTool common GUI