boolean (final PsiElement element, final MatchingHandler handler) { if (element.getParent() instanceof PsiClass && handler instanceof SubstitutionHandler handler2) { return handler2.isStrictSubtype() || handler2.isSubtype(); } return false; }