boolean (@NotNull PsiElement e) { if (e instanceof PsiArrayInitializerExpression) { final PsiElement gParent = e.getParent(); if (gParent instanceof PsiNewExpression && gParent.getParent() instanceof PsiVariable) { return true; } } return false; }