void (JComponent userComponent, @NonNls @NotNull String borderLayoutConstraints) { LOG.assertTrue(!borderLayoutConstraints.equals(BorderLayout.CENTER), "Can't add any component to center"); myMainPanel.add(userComponent, borderLayoutConstraints); }