@Override
		BSimServerInfo getServerInfo() {
			if (nameField.getTextEntryStatus() == Status.INVALID ||
				userField.getTextEntryStatus() == Status.INVALID ||
				hostField.getTextEntryStatus() == Status.INVALID) {
				return null;
			}

			String user = userField.getText().trim();
			String name = nameField.getText().trim();
			String host = hostField.getText().trim();

			int port = getPort(portField.getText().trim());
			if (name.isBlank() || host.isBlank() || port < 0) {
				return null;
			}

			return new BSimServerInfo(type, user, host, port, name);
		}
Dialog for entering new BSim database server definition
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/dialog/CreateBsimServerInfoDialog.java