Source:
<code>private void initListeners() { notifyFactory = new NotificationFactory(); listen(Message.OPENED, (controller, subject, args) -> { assert controller instanceof MenuController; switch (subject) { case "graph": openGraph(args); unifiedEnd = getMaxUnifiedEnd(graph); break; case "known mutations": openKnownMutations(args); break; case "annotations": openAnnotations(args); break; default: return; } }); listen(Message.FILTERED, (controller, subject, args) -> { assert args.length == 1; assert args[0] instanceof Set<?>; @SuppressWarnings("unchecked") Set<Sequence> newSequences = (Set<Sequence>) args[0]; visibleSequences = newSequences; model.setVisible(visibleSequences); diagram = new StackedMutationContainer(model.getBucketCache(), visibleSequences); repaintNow = true; repaint(); }); listen(SequenceController.REFERENCE_SET, (controller, subject, args) -> { assert args.length == 1; assert args[0] instanceof Sequence; reference = (Sequence) args[0]; model = new GraphContainer(graph, reference); model.setVisible(visibleSequences); diagram = new StackedMutationContainer(model .getBucketCache(), visibleSequences); repaintNow = true; repaint(); }); listen(Message.GOTO, (controller, subject, args) -> { assert args[0] instanceof Long; <START> Long position = ((Long) args[0]); <END> double hValue = position.doubleValue() / (double) unifiedEnd; scrollPane.setHvalue(hValue); }); }</code><technical_language>Redundant parentheses</technical_language>

Target:
private void initListeners() { notifyFactory = new NotificationFactory(); listen(Message.OPENED, (controller, subject, args) -> { assert controller instanceof MenuController; switch (subject) { case "graph": openGraph(args); maxUnifiedEnd = getMaxUnifiedEnd(graph); break; case "known mutations": openKnownMutations(args); break; case "annotations": openAnnotations(args); break; default: return; } maxUnifiedEnd = getMaxUnifiedEnd(graph); }); listen(Message.LOADED, (sender, subject, args) -> { if (!subject.equals("sequences")) { return; } assert (args[0] instanceof Map<?, ?>); Map<String, Sequence> sequences = (Map<String, Sequence>) args[0]; if (model != null) { model.setVisible(new HashSet<>(sequences.values())); } else { model = new GraphContainer(graph, null); } }); listen(Message.FILTERED, (controller, subject, args) -> { assert args.length == 1; assert args[0] instanceof Set<?>; @SuppressWarnings("unchecked") Set<Sequence> newSequences = (Set<Sequence>) args[0]; visibleSequences = newSequences; model.setVisible(visibleSequences); diagram = new StackedMutationContainer(model.getBucketCache(), visibleSequences); repaintNow = true; repaint(); }); listen(SequenceController.REFERENCE_SET, (controller, subject, args) -> { assert args.length == 1; assert args[0] instanceof Sequence; reference = (Sequence) args[0]; model = new GraphContainer(graph, reference); model.setVisible(visibleSequences); diagram = new StackedMutationContainer(model .getBucketCache(), visibleSequences); repaintNow = true; repaint(); }); listen(Message.GOTO, (controller, subject, args) -> { assert args[0] instanceof Long; Long position = (Long) args[0]; double hValue = position.doubleValue() / (double) maxUnifiedEnd; scrollPane.setHvalue(hValue); }); }