void (final @NotNull String attributeType) { if (Objects.equals(ObjectUtils.doIfNotNull(getSelectedDescriptor(), d -> d.getType()), attributeType)) return; selectPath(findOption(myTreeModel.getRoot(), new DescriptorMatcher() { @Override public boolean matches(@NotNull Object data) { if (data instanceof EditorSchemeAttributeDescriptor) { return attributeType.equals(((EditorSchemeAttributeDescriptor)data).getType()); } return false; } })); }