PsiClass () { PsiClass aClass = myConstructor.getContainingClass(); if (aClass == null) { PsiUtilCore.ensureValid(myConstructor); throw new AssertionError(myConstructor + " of " + myConstructor.getClass() + " returns null containing class, file=" + myConstructor.getContainingFile()); } return aClass; }