void (PsiMethodCallExpression methodCall) { PsiMethodCallExpression optionalQualifier = getQualifierMethodCall(methodCall); if (!STREAM_FIND.test(optionalQualifier)) return; PsiMethodCallExpression streamQualifier = getQualifierMethodCall(optionalQualifier); if (!STREAM_FILTER.test(streamQualifier)) return; ReplaceOptionalIsPresentChainFix fix = new ReplaceOptionalIsPresentChainFix(optionalQualifier.getMethodExpression().getReferenceName()); holder.registerProblem(methodCall, getCallChainRange(methodCall, streamQualifier), fix.getMessage(), new SimplifyCallChainFix(fix)); }