void (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { PsiParameter p = (PsiParameter)startElement; final PsiMethod method = PsiTreeUtil.getParentOfType(p, PsiMethod.class); if (method == null) return; final int parameterIdx = ArrayUtil.find(method.getParameterList().getParameters(), p); if (parameterIdx < 0) return; UsageViewPresentation presentation = new UsageViewPresentation(); String title = JavaBundle.message("nullable.stuff.inspection.navigate.null.argument.usages.view.name", p.getName()); presentation.setUsagesString(title); presentation.setTabName(title); presentation.setTabText(title); UsageViewManager.getInstance(project).searchAndShowUsages( new UsageTarget[]{new PsiElement2UsageTargetAdapter(method.getParameterList().getParameters()[parameterIdx])}, () -> new UsageSearcher() { @Override public void generate(@NotNull final Processor<? super Usage> processor) { ReadAction.run(() -> JavaNullMethodArgumentUtil.searchNullArgument(method, parameterIdx, (arg) -> processor.process(new UsageInfo2UsageAdapter(new UsageInfo(arg))))); } }, false, false, presentation, null); }