enable flycheck for both groovy and java modes