void () { myCommitMessageScrollPane.setVisible(myShowCommitMessage); if (myShowSideBorders) { if (myShowCommitMessage) { myChangesBrowser.setViewerBorder(IdeBorderFactory.createBorder(SideBorder.TOP | SideBorder.LEFT | SideBorder.RIGHT)); myCommitMessageScrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.LEFT | SideBorder.RIGHT | SideBorder.BOTTOM)); } else { myChangesBrowser.setViewerBorder(IdeBorderFactory.createBorder(SideBorder.ALL)); } } else { myChangesBrowser.setViewerBorder(IdeBorderFactory.createBorder(SideBorder.TOP)); myCommitMessageScrollPane.setBorder(JBUI.Borders.empty()); } }