void (@NotNull PyAssignmentStatement node) { if (!(node.getAssignedValue() instanceof PyListLiteralExpression)) return; final PyExpression[] targets = node.getTargets(); if (targets.length != 1) return; final PyExpression target = targets[0]; final String name = target.getName(); if (name == null) return; List<PyExpressionStatement> appendCalls = collectSubsequentListAppendCalls(node); if (!appendCalls.isEmpty()) { registerProblem(node, PyPsiBundle.message("INSP.list.creation.this.list.creation.could.be.rewritten.as.list.literal"), new ListCreationQuickFix()); } }