Currently if I have a nested class but don't include it in targets, it will fail. We should check the root parent class for targets in that case