GuavaLambda (@Nullable PsiType type) { final PsiClass aClass = PsiTypesUtil.getPsiClass(type); if (aClass == null) return null; for (GuavaLambda lambda : values()) { if (InheritanceUtil.isInheritor(aClass, lambda.getJavaAnalogueClassQName())) { return lambda; } } return null; }