private JPanel buildMainPanel() {

		JPanel innerPanel = new JPanel();
		innerPanel.setLayout(new BoxLayout(innerPanel, BoxLayout.Y_AXIS));
		innerPanel.getAccessibleContext().setAccessibleName("Version Control");
		Icon icon = addToVersionControl ? ADD_ICON : CHECK_IN_ICON;

		descriptionLabel = new GDLabel(addToVersionControl ? "Add comments to describe the file."
				: "Add comments to describe changes",
			SwingConstants.LEFT);
		descriptionLabel.getAccessibleContext().setAccessibleName("Description");
		JPanel dPanel = new JPanel(new BorderLayout(10, 0));
		dPanel.add(new GIconLabel(icon), BorderLayout.WEST);
		dPanel.add(descriptionLabel, BorderLayout.CENTER);
		dPanel.getAccessibleContext().setAccessibleName("Description");

		JPanel cPanel = new JPanel(new BorderLayout());
		cPanel.add(new GLabel("Comments:", SwingConstants.LEFT));
		cPanel.getAccessibleContext().setAccessibleName("Comments");
		commentsTextArea = new JTextArea(4, 20);
		JScrollPane sp = new JScrollPane(commentsTextArea);
		sp.getAccessibleContext().setAccessibleName("Comment");
		keepCB = new GCheckBox("Keep File Checked Out", true);
		JPanel kPanel = new JPanel(new BorderLayout());
		kPanel.add(keepCB, BorderLayout.WEST);
		kPanel.getAccessibleContext().setAccessibleName("Keep File");

		innerPanel.add(Box.createVerticalStrut(10));
		innerPanel.add(dPanel);
		innerPanel.add(Box.createVerticalStrut(5));
		innerPanel.add(cPanel);
		innerPanel.add(sp);
		innerPanel.add(Box.createVerticalStrut(5));
		innerPanel.add(kPanel);

		if (!addToVersionControl) {
			keepFileCB = new GCheckBox("Create \".keep\" file", false);
			JPanel kpPanel = new JPanel(new BorderLayout());
			kpPanel.add(keepFileCB, BorderLayout.WEST);
			kpPanel.getAccessibleContext().setAccessibleName("Keep File");
			innerPanel.add(kpPanel);
		}

		JPanel mainPanel = new JPanel(new BorderLayout());
		mainPanel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
		mainPanel.add(innerPanel);
		mainPanel.getAccessibleContext().setAccessibleName("Version Control");
		return mainPanel;
	}
Return the comments for the add to version control.
@return may be the empty string
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/VersionControlDialog.java