void (PsiClass intellij, PsiClass theirs) { PsiClass intellijContainingClass = intellij.getContainingClass(); PsiClass theirsContainingClass = theirs.getContainingClass(); String intellijContainingClassName = intellijContainingClass == null ? null : intellijContainingClass.toString(); String theirsContainingClassName = theirsContainingClass == null ? null : theirsContainingClass.toString(); LOG.debug("IntelliJ containing class for class " + intellij.getName() + ": " + intellijContainingClassName); LOG.debug("Theirs containing class for class " + theirs.getName() + ": " + theirsContainingClassName); assertEquals("Containing classes different for class: " + intellij.getName(), intellijContainingClassName, theirsContainingClassName); }