boolean (@NotNull Extension extension, ProcessingContext context) { final ExtensionPoint extensionPoint = extension.getExtensionPoint(); if (extensionPoint == null) return false; final PsiClass beanClass = extensionPoint.getBeanClass().getValue(); for (String name : extensionPointClassNames) { if (InheritanceUtil.isInheritor(beanClass, name)) return true; } return false; }