コード例 #1
0
 public static boolean hasReceiver(
     @NotNull PsiMethodReferenceExpression methodRef, @NotNull PsiMethod method) {
   return hasReceiver(methodRef, method, methodRef.getFunctionalInterfaceType());
 }
コード例 #2
0
  public static String checkMethodReferenceContext(PsiMethodReferenceExpression methodRef) {
    final PsiElement resolve = methodRef.resolve();

    if (resolve == null) return null;
    return checkMethodReferenceContext(methodRef, resolve, methodRef.getFunctionalInterfaceType());
  }