Detect no-args constructor for top level and nested classes