SearchableConfigurable (SearchableConfigurable.Parent topConfigurable, @NotNull final String name) { for (Configurable configurable : topConfigurable.getConfigurables()) { if (configurable instanceof SearchableConfigurable) { if (name.equals(configurable.getDisplayName())) return (SearchableConfigurable)configurable; if (configurable instanceof SearchableConfigurable.Parent) { SearchableConfigurable child = findSubConfigurable((Parent)configurable, name); if (child != null) return child; } } } return null; }