Skip inspection if the function declaration is inside a type declaration