void (@NotNull PsiMethodCallExpression methodCall) { PsiElement nameElement = methodCall.getMethodExpression().getReferenceNameElement(); if (nameElement == null) return; CALL_TO_FIX_MAPPER.mapAll(methodCall) .forEach( simplification -> holder.registerProblem(nameElement, simplification.getMessage(), new SimplifyCallChainFix(simplification))); if (STREAM_COLLECT.test(methodCall)) { handleStreamCollect(methodCall); } else if (OPTIONAL_IS_PRESENT.test(methodCall)) { handleOptionalIsPresent(methodCall); } }