String (final PsiClass aClass) { PsiClass parentClass = PsiTreeUtil.getParentOfType(aClass, PsiClass.class, true); if(parentClass != null) { return getClassOrInnerName(parentClass) + "$" + aClass.getName(); } return aClass.getQualifiedName(); }