private static boolean checkVariable(@NotNull PsiVariable variable,
                                         @Nullable PsiExpression firstQualifier,
                                         @Nullable PsiElement context) {
      if (context == null) {
        return false;
      }
      if (!(PsiUtil.skipParenthesizedExprDown(firstQualifier) instanceof PsiNewExpression)) {
        return false;
      }
      if (VariableAccessUtils.variableIsAssigned(variable, context)) {
        return false;
      }
      if (VariableAccessUtils.variableIsAssignedFrom(variable, context)) {
        return false;
      }
      if (VariableAccessUtils.variableIsReturned(variable, context)) {
        return false;
      }
      if (VariableAccessUtils.variableIsPassedAsMethodArgument(variable, context)) {
        return false;
      }
      return !VariableAccessUtils.variableIsUsedInArrayInitializer(variable, context);
    }
private static boolean checkVariable(@NotNull PsiVariable variable,
                                         @Nullable PsiExpression firstQualifier,
                                         @Nullable PsiElement context)