Source:
public final void initialize(final URL location, final ResourceBundle resources) { NotificationFactory notFact = new NotificationFactory(); forceRepaintPosition = false; listen(Message.OPENED, (controller, args) -> { assert controller instanceof MenuController; assert args[0] instanceof String; if (!((String) args[0]).equals("graph")) { return; } assert args[1] instanceof File && args[2] instanceof File; try { loadGraph((File) args[1], (File) args[2]); } catch (IOException exception) { shout(NotificationController.NOTIFY, notFact.getNotification(exception)); } }); listen(Message.FILTERED, (controller, args) -> { assert args.length == 1; assert (args[0] instanceof Set<?>); model.setVisible((Set<Sequence>) args[0]); forceRepaintPosition = true; repaint(); }); listen(SequenceController.REFERENCE_SET, (controller, args) -> { assert args.length == 1; assert args[0] instanceof Sequence; Sequence sequence = (Sequence) args[0]; new ReferencePositionTraverser(sequence) .referenceMapGraph(graph); new MutationIndicationTraverser(sequence) .indicateGraphMutations(graph); }); listen(Message.OPENED, (controller, args) -> { assert controller instanceof MenuController; if (!((String) args[0]).equals("annotations")) { return; } assert args[1] instanceof File; if (graph == null) { shout(NotificationController.NOTIFY, notFact.getNotification(new IllegalStateException( "Graph not loaded while attempting to add annotations."))); } else { try { insertAnnotations((File) args[1]); } catch (IOException exception) { shout(NotificationController.NOTIFY, notFact.getNotification(exception)); } } }); }

Target:
public final void initialize(final URL location, final ResourceBundle resources) { NotificationFactory notFact = new NotificationFactory(); forceRepaintPosition = false; listen(Message.OPENED, (controller, subject, args) -> { assert controller instanceof MenuController; if (!subject.equals("graph")) { return; } assert args.length == 2; assert args[0] instanceof File && args[1] instanceof File; try { loadGraph((File) args[0], (File) args[1]); } catch (IOException exception) { shout(NotificationController.NOTIFY, "", notFact.getNotification(exception)); } }); listen(Message.FILTERED, (controller, subject, args) -> { assert args.length == 1; assert (args[0] instanceof Set<?>); model.setVisible((Set<Sequence>) args[0]); forceRepaintPosition = true; repaint(); }); listen(SequenceController.REFERENCE_SET, (controller, subject, args) -> { assert args.length == 1; assert args[0] instanceof Sequence; Sequence sequence = (Sequence) args[0]; ReferencePositionTraverser.referenceMapGraph(graph, sequence); MutationIndicationTraverser.indicateGraphMutations(graph, sequence); }); listen(Message.OPENED, (controller, subject, args) -> { assert controller instanceof MenuController; if (!subject.equals("annotations")) { return; } assert args[1] instanceof File; if (graph == null) { shout(NotificationController.NOTIFY, "", notFact.getNotification(new IllegalStateException( "Graph not loaded while attempting to add annotations."))); } else { try { insertAnnotations((File) args[1]); } catch (IOException exception) { shout(NotificationController.NOTIFY, "", notFact.getNotification(exception)); } } }); }