AnonymousLambdaAlternative (PsiClass type, PsiMethod method) { if(type == null) return null; for(AnonymousLambdaAlternative alternative : ALTERNATIVES) { if(alternative.myClassName.equals(type.getQualifiedName()) && alternative.myMethodName.equals(method.getName())) { return alternative; } } return null; }