void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); assert element instanceof PyAssignmentStatement; PyExpression[] targets = ((PyAssignmentStatement)element).getTargets(); if (targets.length == 1 && targets[0] instanceof PySubscriptionExpression subscriptionExpression) { if (subscriptionExpression.getOperand() instanceof PyReferenceExpression referenceExpression) { final TypeEvalContext context = TypeEvalContext.userInitiated(project, element.getContainingFile()); final PyResolveContext resolveContext = PyResolveContext.defaultContext(context); element = referenceExpression.followAssignmentsChain(resolveContext).getElement(); if (element instanceof PyParenthesizedExpression) { final PyExpression expression = ((PyParenthesizedExpression)element).getContainedExpression(); replaceWithListLiteral(element, (PyTupleExpression)expression); } else if (element instanceof PyTupleExpression) { replaceWithListLiteral(element, (PyTupleExpression)element); } } } }