JComponent () { myOnlyVcsCheckBox = new JCheckBox(CodeInsightBundle.message("process.scope.changed.files")); myOnlyVcsCheckBox.setEnabled(myContextHasChanges); boolean lastRunVcsChangedTextEnabled = myLastRunOptions.getLastTextRangeType() == TextRangeType.VCS_CHANGED_TEXT; myOnlyVcsCheckBox.setSelected(myContextHasChanges && lastRunVcsChangedTextEnabled); return new FormBuilder() .addComponent(new JLabel(myText)) .setVerticalGap(UIUtil.LARGE_VGAP) .addComponent(myOnlyVcsCheckBox) .getPanel(); }