@NotNull
  public JComponent createTopPanel() {
    List<JComponent> notifications = new ArrayList<>();
    if (myPushSource == null) {
      Runnable closeDialog = () -> myDialog.doCancelAction();
      JComponent commitStatus = PostCommitChecksHandler.getInstance(myProject).createPushStatusNotification(closeDialog);
      if (commitStatus != null) {
        myHasCommitWarning = true;
        notifications.add(commitStatus);
      }
    }

    notifications = DiffUtil.wrapEditorNotificationBorders(notifications);
    JComponent panel = DiffUtil.createStackedComponents(notifications, DiffUtil.TITLE_GAP);
    if (!notifications.isEmpty()) {
      panel.setBorder(JBUI.Borders.customLineBottom(JBUI.CurrentTheme.CustomFrameDecorations.separatorForeground()));
    }
    return panel;
  }
@NotNull
  public JComponent createTopPanel()