Source:
private void populate(ApplicationBuildInformation buildInformation, Opener opener) { Text title = new TextWithStyle(tr("About"), "title"); GridPane aboutGrid = new GridPane(); aboutGrid.getStyleClass().add("grid"); aboutGrid.setHgap(20); aboutGrid.setVgap(10); final Text nameDescription = new TextWithStyle(tr("Name:"), "captionTitle"); final Label nameLabel = new Label(buildInformation.getApplicationName()); aboutGrid.add(nameDescription, 0, 0); aboutGrid.add(nameLabel, 1, 0); final Text versionDescription = new TextWithStyle(tr("Version:"), "captionTitle"); final Label versionLabel = new Label(buildInformation.getApplicationVersion()); aboutGrid.add(versionDescription, 0, 1); aboutGrid.add(versionLabel, 1, 1); final Text gitRevisionDescription = new TextWithStyle(tr("Git Revision:"), "captionTitle"); final String gitRevision = buildInformation.getApplicationGitRevision(); aboutGrid.add(gitRevisionDescription, 0, 2); if ("unknown".equals(gitRevision)) { final Label gitRevisionLabel = new Label(gitRevision); aboutGrid.add(gitRevisionLabel, 1, 2); } else { final Hyperlink gitRevisionHyperlink = new Hyperlink(gitRevision); gitRevisionHyperlink.setOnAction(event -> { try { URI uri = new URI("<LINK_0>" + buildInformation.getApplicationGitRevision()); opener.open(uri); } catch (URISyntaxException e) { e.printStackTrace(); } }); aboutGrid.add(gitRevisionHyperlink, 1, 2); } final Text buildTimestampDescription = new TextWithStyle(tr("Build Timestamp:"), "captionTitle"); final Label buildTimestampLabel = new Label(buildInformation.getApplicationBuildTimestamp()); aboutGrid.add(buildTimestampDescription, 0, 3); aboutGrid.add(buildTimestampLabel, 1, 3); this.getChildren().setAll(title, aboutGrid); }

Target:
private void populate(ApplicationBuildInformation buildInformation, Opener opener) { final Text title = new Text(tr("About")); title.getStyleClass().add("title"); final GridPane aboutGrid = new GridPane(); aboutGrid.getStyleClass().add("grid"); aboutGrid.setHgap(20); aboutGrid.setVgap(10); final Text nameDescription = new Text(tr("Name:")); nameDescription.getStyleClass().add("captionTitle"); final Label nameLabel = new Label(buildInformation.getApplicationName()); aboutGrid.add(nameDescription, 0, 0); aboutGrid.add(nameLabel, 1, 0); final Text versionDescription = new Text(tr("Version:")); versionDescription.getStyleClass().add("captionTitle"); final Label versionLabel = new Label(buildInformation.getApplicationVersion()); aboutGrid.add(versionDescription, 0, 1); aboutGrid.add(versionLabel, 1, 1); final Text gitRevisionDescription = new Text(tr("Git Revision:")); gitRevisionDescription.getStyleClass().add("captionTitle"); final String gitRevision = buildInformation.getApplicationGitRevision(); aboutGrid.add(gitRevisionDescription, 0, 2); if ("unknown".equals(gitRevision)) { final Label gitRevisionLabel = new Label(gitRevision); aboutGrid.add(gitRevisionLabel, 1, 2); } else { final Hyperlink gitRevisionHyperlink = new Hyperlink(gitRevision); gitRevisionHyperlink.setOnAction(event -> { try { URI uri = new URI("<LINK_0>" + buildInformation.getApplicationGitRevision()); opener.open(uri); } catch (URISyntaxException e) { LOGGER.error("Could not open GitHub URL.", e); } }); aboutGrid.add(gitRevisionHyperlink, 1, 2); } final Text buildTimestampDescription = new Text(tr("Build Timestamp:")); buildTimestampDescription.getStyleClass().add("captionTitle"); final Label buildTimestampLabel = new Label(buildInformation.getApplicationBuildTimestamp()); aboutGrid.add(buildTimestampDescription, 0, 3); aboutGrid.add(buildTimestampLabel, 1, 3); this.getChildren().setAll(title, aboutGrid); }