You can shorten this to ``case _: Val | _: Var | _: Method => true``