@Nullable public MethodMatchParameter match() { if (!LaravelProjectComponent.isEnabled(psiElement)) { return null; } MethodReferenceBag bag = PhpElementsUtil.getMethodParameterReferenceBag(psiElement, this.parameterIndex); if (bag == null) { return null; } CallToSignature matchedMethodSignature = this.isCallTo(bag.getMethodReference()); if (matchedMethodSignature == null) { return null; } return new MethodMatchParameter( matchedMethodSignature, bag.getParameterBag(), bag.getParameterList().getParameters(), bag.getMethodReference()); }