boolean (PsiVariable variable) { final PsiExpression initializer = variable.getInitializer(); if (initializer instanceof PsiArrayInitializerExpression arrayInitializerExpression) { final PsiExpression[] initializers = arrayInitializerExpression.getInitializers(); return initializers.length == 0; } return ConstructionUtils.isEmptyArrayInitializer(initializer); }