small code cleanup; add missing license header

git-svn-id: https://languagetool.svn.sourceforge.net/svnroot/languagetool/trunk/languagetool@9441 2fe6a88b-1217-0410-b804-ba6ed01314b8