void (@NotNull PsiLambdaExpression lambda) { if (lambda.getParameterList().getParametersCount() != 3) return; PsiType type = lambda.getFunctionalInterfaceType(); if (!InheritanceUtil.isInheritor(type, HANDLER_CLASS)) return; check(lambda); }