Esempio n. 1
0
 private static PsiType getFunctionalInterfaceTypeByContainingLambda(
     @NotNull PsiLambdaExpression parentLambda) {
   final PsiType parentInterfaceType = parentLambda.getFunctionalInterfaceType();
   return parentInterfaceType != null
       ? getFunctionalInterfaceReturnType(parentInterfaceType)
       : null;
 }
Esempio n. 2
0
 @Nullable
 public static PsiType getFunctionalInterfaceReturnType(PsiLambdaExpression expr) {
   return getFunctionalInterfaceReturnType(expr.getFunctionalInterfaceType());
 }