private static boolean shouldCreateInnerClass(PsiClass psiClass) {
    if (psiClass.getContainingClass() == null) {
      return false;
    }
    return psiClass.hasModifierProperty(PsiModifier.PRIVATE) ||
           !psiClass.hasModifierProperty(PsiModifier.STATIC) ||
           PsiUtil.isLocalClass(psiClass);
  }
private static boolean shouldCreateInnerClass(PsiClass psiClass)