void (@NotNull DocumentEvent e) { mySharedVMOptionsField.setEditable(myVMOptionsField.getDocument().getLength() == 0); mySharedVMOptionsField.setBackground(myVMOptionsField.getDocument().getLength() == 0 ? UIUtil.getTextFieldBackground() : UIUtil.getTextFieldDisabledBackground()); mySharedHeapSizeField.setEnabled( myHeapSizeField.getDocument().getLength() == 0 && ContainerUtil.find(ParametersListUtil.parse(myVMOptionsField.getText()), s -> StringUtil.startsWithIgnoreCase(s, "-Xmx")) == null ); }