Split StmtContextUtils.hasParentOfType() implementations