See FragmentStrictMode.Policy.Builder.detectWrongFragmentContainer.
Gets the container that the Fragment causing the Violation was being added to.