boolean (PsiExpression initializer) { if (initializer == null) { return true; } if (initializer instanceof PsiNewExpression newExpression) { final PsiArrayInitializerExpression arrayInitializer = newExpression.getArrayInitializer(); return arrayInitializer == null || isZeroSizeArrayExpression(arrayInitializer); } if (initializer instanceof PsiArrayInitializerExpression arrayInitializerExpression) { final PsiExpression[] initializers = arrayInitializerExpression.getInitializers(); return initializers.length == 0; } return false; }