AnAction () { // This gutter's actions are not collected to any menu, so we use SimpleAction. return DumbAwareAction.create(e -> { var project = e.getProject(); if (project == null) return; // Initially we select the newest breakpoint, it's shown above other breakpoints in the dialog. @SuppressWarnings("OptionalGetWithoutIsPresent") // there are always at least two breakpoints var initialOne = breakpoints.stream().sorted().findFirst().get(); BreakpointsDialogFactory.getInstance(project).showDialog(initialOne); }); }