Access (@NotNull PsiElement expression) { if (isDeclarationWriteAccess(expression)) { return Access.Write; } if (expression instanceof PyReferenceExpression) { final PyAugAssignmentStatement statement = PyAugAssignmentStatementNavigator.getStatementByTarget(expression); if (statement != null) { return Access.ReadWrite; } } return Access.Read; }