fix #380
isMember -> isClassOrInterfaceMember
check primaries of invocations as well