Supplier<PsiCodeBlock> (PsiReference ref) { if (!(ref instanceof PsiReferenceExpression)) return null; PsiMethodCallExpression call = tryCast(((PsiReferenceExpression)ref).getParent(), PsiMethodCallExpression.class); return SPECIALIZATIONS.mapFirst(call); }