void () { if (myMultiTabs) { myNameAndButtons.removeButtons(); } else { myNameAndButtons.removeButtons(); Container parent = myEnabledForProject.getParent(); if (parent != null) { parent.remove(myEnabledForProject); } myPanel.setBorder(JBUI.Borders.empty(15, 20, 0, 0)); } myEmptyPanel.setBorder(null); }