PsiLocalVariable () { PsiClass outerClass = myClass.getContainingClass(); assert outerClass != null; return generateLocal(StringUtil.decapitalize(StringUtil.notNullize(outerClass.getName())), myElementFactory.createType(outerClass), myNewExpression.getQualifier()); }