void (final @NotNull AnActionEvent e) { e.accept(new AnActionEventVisitor() { @Override public void visitGestureInitEvent(final @NotNull AnActionEvent e) { System.out.println("TestGestureAction.visitGestureInitEvent"); } @Override public void visitGesturePerformedEvent(final @NotNull AnActionEvent e) { System.out.println("TestGestureAction.visitGesturePerformedEvent"); } @Override public void visitGestureFinishEvent(final @NotNull AnActionEvent e) { System.out.println("TestGestureAction.visitGestureFinishEvent"); } @Override public void visitEvent(final @NotNull AnActionEvent e) { System.out.println("TestGestureAction.visitEvent"); } }); }