void (Module module, @NotNull IComponent component, FormErrorCollector collector) { for(IProperty prop: component.getModifiedProperties()) { Object propValue = prop.getPropertyValue(component); if (propValue instanceof StringDescriptor descriptor) { checkStringDescriptor(module, component, prop, descriptor, collector); } } if (component instanceof IContainer container) { StringDescriptor descriptor = container.getBorderTitle(); if (descriptor != null) { checkStringDescriptor(module, component, myBorderProperty.getValue(), descriptor, collector); } } if (component.getParentContainer() instanceof ITabbedPane parentTabbedPane) { StringDescriptor descriptor = parentTabbedPane.getTabProperty(component, ITabbedPane.TAB_TITLE_PROPERTY); if (descriptor != null) { checkStringDescriptor(module, component, MockTabTitleProperty.INSTANCE, descriptor, collector); } descriptor = parentTabbedPane.getTabProperty(component, ITabbedPane.TAB_TOOLTIP_PROPERTY); if (descriptor != null) { checkStringDescriptor(module, component, MockTabToolTipProperty.INSTANCE, descriptor, collector); } } }