void () { myJBScrollPane = new JBScrollPane() { @Override public Dimension getPreferredSize() { Dimension prefSize = super.getPreferredSize(); return new Dimension(prefSize.width + 15, prefSize.height); } }; myRightMarginForm = new RightMarginForm(XmlFileType.INSTANCE.getLanguage(), getSettings()); myRightMarginPanel = myRightMarginForm.getTopPanel(); }