void (ExtensionPoint extensionPoint, DomElementAnnotationHolder holder) { boolean hasBeanClass = DomUtil.hasXml(extensionPoint.getBeanClass()); boolean hasInterface = DomUtil.hasXml(extensionPoint.getInterface()); if (hasBeanClass && hasInterface) { highlightRedundant(extensionPoint.getBeanClass(), DevKitBundle.message("inspections.plugin.xml.ep.both.beanClass.and.interface"), ProblemHighlightType.GENERIC_ERROR, holder); highlightRedundant(extensionPoint.getInterface(), DevKitBundle.message("inspections.plugin.xml.ep.both.beanClass.and.interface"), ProblemHighlightType.GENERIC_ERROR, holder); } else if (!hasBeanClass && !hasInterface) { holder.createProblem(extensionPoint, ProblemHighlightType.GENERIC_ERROR, DevKitBundle.message("inspections.plugin.xml.ep.missing.beanClass.and.interface"), null, new AddDomElementQuickFix<>(extensionPoint.getBeanClass()), new AddDomElementQuickFix<>(extensionPoint.getInterface())); } }