void (EmptyState emptyState) { StatusText text = myEmptyPanel.getEmptyText(); text.clear(); myLoadingIcon.setVisible(false); myLoadingIcon.suspend(); switch (emptyState) { case MULTI_SELECT -> { text.setText(IdeBundle.message("plugins.configurable.several.plugins")); text.appendSecondaryText(IdeBundle.message("plugins.configurable.one.plugin.details"), StatusText.DEFAULT_ATTRIBUTES, null); } case NONE_SELECTED -> text.setText(IdeBundle.message("plugins.configurable.plugin.details")); case PROGRESS -> { myLoadingIcon.setVisible(true); myLoadingIcon.resume(); } } }