void (@NotNull Project project) { if (Registry.is("debugger.capture.points.annotations")) { List<CapturePoint> capturePointsFromAnnotations = new ArrayList<>(); processCaptureAnnotations(project, (capture, e, annotation) -> { if (e instanceof PsiMethod) { addCapturePointIfNeeded(e, (PsiMethod)e, "this", capture, capturePointsFromAnnotations); } else if (e instanceof PsiParameter psiParameter) { PsiMethod psiMethod = (PsiMethod)psiParameter.getDeclarationScope(); addCapturePointIfNeeded(psiParameter, psiMethod, DecompiledLocalVariable.PARAM_PREFIX + psiMethod.getParameterList().getParameterIndex(psiParameter), capture, capturePointsFromAnnotations); } }); capturePointsFromAnnotations.forEach(this::addIfNeeded); } }