java check if instance implements interface