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