void (final Module module, final IComponent component, final IProperty prop, final StringDescriptor descriptor, final FormErrorCollector collector) { if (isHardCodedStringDescriptor(descriptor)) { if (isPropertyDescriptor(prop)) { if (isSetterNonNls(module.getProject(), GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module), component.getComponentClassName(), prop.getName())) { return; } } EditorQuickFixProvider provider; if (prop.getName().equals(BorderProperty.NAME)) { provider = new FixesProvider() { @Override public @NotNull QuickFix createQuickFix(GuiEditor editor, @NotNull RadComponent component12) { return new I18nizeFormQuickFix(editor, UIDesignerBundle.message("i18n.quickfix.border.title"), new FormBorderStringDescriptorAccessor((RadContainer)component12)); } }; } else if (prop.getName().equals(ITabbedPane.TAB_TITLE_PROPERTY) || prop.getName().equals(ITabbedPane.TAB_TOOLTIP_PROPERTY)) { provider = new FixesProvider() { @Override public @NotNull QuickFix createQuickFix(GuiEditor editor, @NotNull RadComponent component1) { return new I18nizeFormQuickFix(editor, UIDesignerBundle.message("i18n.quickfix.tab.title", prop.getName()), new TabTitleStringDescriptorAccessor(component1, prop.getName())); } }; } else { provider = new FixesProvider() { @Override public @NotNull QuickFix createQuickFix(GuiEditor editor, @NotNull RadComponent component13) { return new I18nizeFormQuickFix(editor, UIDesignerBundle.message("i18n.quickfix.property", prop.getName()), new FormPropertyStringDescriptorAccessor(component13, (IntrospectedProperty)prop)); } }; } collector.addError(getID(), component, prop, UIDesignerBundle.message("inspection.i18n.message.in.form", descriptor.getValue()), provider); } }