Correctly detect static / instance.