boolean (@NotNull PsiElement element) { if (!(element instanceof GrIndexProperty arrayIndexExpression)) return false; if (ErrorUtil.containsError(element)) return false; final PsiElement lastChild = arrayIndexExpression.getLastChild(); if (!(lastChild instanceof GrArgumentList argList)) return false; final GrExpression[] arguments = argList.getExpressionArguments(); if (arguments.length != 1) return false; final PsiElement parent = element.getParent(); if (!(parent instanceof GrAssignmentExpression assignmentExpression)) { return true; } final GrExpression rvalue = assignmentExpression.getRValue(); if (rvalue == null) return false; if (rvalue.equals(element)) return true; return !assignmentExpression.isOperatorAssignment(); }