PsiClassPattern (final boolean strict, final String className) { return with(new PatternCondition<PsiClass>("inheritorOf") { @Override public boolean accepts(@NotNull PsiClass psiClass, final ProcessingContext context) { return InheritanceUtil.isInheritor(psiClass, strict, className); } }); }