void (@Nullable @Nls String text) { myErrorLabel.setText(text); myErrorLabel.setForeground(MessageType.ERROR.getTitleForeground()); myErrorLabel.setIcon(StringUtil.isEmpty(text) ? null : AllIcons.Actions.Lightning); myCreateButton.setEnabled(text == null); }