Add flycheck mode to java and groovy