boolean (@NotNull CFGBuilder builder, @NotNull PsiMethodCallExpression call) { if (FOR_COLLECTION_TERMINAL.test(call)) { PsiMethodCallExpression qualifierCall = MethodCallUtils.getQualifierMethodCall(call); if (qualifierCall == null || !InheritanceUtil.isInheritor(qualifierCall.getType(), JAVA_UTIL_COLLECTION)) return false; Step terminalStep = new LambdaTerminalStep(call); startStreamFromCollection(builder, terminalStep, qualifierCall); terminalStep.pushResult(builder); return true; } if (TERMINAL_CALL.test(call)) { return inlineCompleteStream(builder, call); } else { return inlinePartialStream(builder, call); } }