minimize error messages for not-visible Java types