// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.idea.intentions;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("idea/tests")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/intentions/loopToCallChain")
public abstract class K1IntentionTest2Generated extends AbstractK1IntentionTest2 {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/any")
    public static class Any extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("anyNotNull.kt")
        public void testAnyNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/anyNotNull.kt");
        }

        @TestMetadata("ifAssign.kt")
        public void testIfAssign() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign.kt");
        }

        @TestMetadata("ifAssign_moveDeclaration.kt")
        public void testIfAssign_moveDeclaration() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign_moveDeclaration.kt");
        }

        @TestMetadata("ifAssign_moveInitialization.kt")
        public void testIfAssign_moveInitialization() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign_moveInitialization.kt");
        }

        @TestMetadata("ifAssign_noBreak.kt")
        public void testIfAssign_noBreak() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign_noBreak.kt");
        }

        @TestMetadata("ifAssign_nonBooleanResult.kt")
        public void testIfAssign_nonBooleanResult() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign_nonBooleanResult.kt");
        }

        @TestMetadata("ifAssign_nonBooleanResult2.kt")
        public void testIfAssign_nonBooleanResult2() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifAssign_nonBooleanResult2.kt");
        }

        @TestMetadata("ifReturn.kt")
        public void testIfReturn() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifReturn.kt");
        }

        @TestMetadata("ifReturn_nonBooleanResult.kt")
        public void testIfReturn_nonBooleanResult() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/ifReturn_nonBooleanResult.kt");
        }

        @TestMetadata("indexNeeded.kt")
        public void testIndexNeeded() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/indexNeeded.kt");
        }

        @TestMetadata("KT13998.kt")
        public void testKT13998() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/KT13998.kt");
        }

        @TestMetadata("KT13998_1.kt")
        public void testKT13998_1() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/KT13998_1.kt");
        }

        @TestMetadata("kt17730.kt")
        public void testKt17730() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/kt17730.kt");
        }

        @TestMetadata("kt17730_1.kt")
        public void testKt17730_1() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/kt17730_1.kt");
        }

        @TestMetadata("none.kt")
        public void testNone() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/none.kt");
        }

        @TestMetadata("return.kt")
        public void testReturn() throws Exception {
            runTest("testData/intentions/loopToCallChain/any/return.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/contains")
    public static class Contains extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("1.kt")
        public void test1() throws Exception {
            runTest("testData/intentions/loopToCallChain/contains/1.kt");
        }

        @TestMetadata("2.kt")
        public void test2() throws Exception {
            runTest("testData/intentions/loopToCallChain/contains/2.kt");
        }

        @TestMetadata("3.kt")
        public void test3() throws Exception {
            runTest("testData/intentions/loopToCallChain/contains/3.kt");
        }

        @TestMetadata("4.kt")
        public void test4() throws Exception {
            runTest("testData/intentions/loopToCallChain/contains/4.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/count")
    public static class Count extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("1.kt")
        public void test1() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/1.kt");
        }

        @TestMetadata("2.kt")
        public void test2() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/2.kt");
        }

        @TestMetadata("countIsInstance.kt")
        public void testCountIsInstance() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/countIsInstance.kt");
        }

        @TestMetadata("countNotNull.kt")
        public void testCountNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/countNotNull.kt");
        }

        @TestMetadata("countSomethingAndNotNull.kt")
        public void testCountSomethingAndNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/countSomethingAndNotNull.kt");
        }

        @TestMetadata("long.kt")
        public void testLong() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/long.kt");
        }

        @TestMetadata("nonConstantInitial.kt")
        public void testNonConstantInitial() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/nonConstantInitial.kt");
        }

        @TestMetadata("nonZeroInitial.kt")
        public void testNonZeroInitial() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/nonZeroInitial.kt");
        }

        @TestMetadata("prefix.kt")
        public void testPrefix() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/prefix.kt");
        }

        @TestMetadata("variableUsedBefore.kt")
        public void testVariableUsedBefore() throws Exception {
            runTest("testData/intentions/loopToCallChain/count/variableUsedBefore.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/filter")
    public static class Filter extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("assign.kt")
        public void testAssign() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign.kt");
        }

        @TestMetadata("assign2.kt")
        public void testAssign2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign2.kt");
        }

        @TestMetadata("assignFilterIndexed.kt")
        public void testAssignFilterIndexed() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assignFilterIndexed.kt");
        }

        @TestMetadata("assignFilterNotNull.kt")
        public void testAssignFilterNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assignFilterNotNull.kt");
        }

        @TestMetadata("assign_ArrayListRequired.kt")
        public void testAssign_ArrayListRequired() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign_ArrayListRequired.kt");
        }

        @TestMetadata("assign_ArrayListRequired2.kt")
        public void testAssign_ArrayListRequired2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign_ArrayListRequired2.kt");
        }

        @TestMetadata("assign_ArrayListRequired3.kt")
        public void testAssign_ArrayListRequired3() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign_ArrayListRequired3.kt");
        }

        @TestMetadata("assign_MutableListRequired.kt")
        public void testAssign_MutableListRequired() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign_MutableListRequired.kt");
        }

        @TestMetadata("assign_breakAndContinue.kt")
        public void testAssign_breakAndContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/assign_breakAndContinue.kt");
        }

        @TestMetadata("cannotSplitOutFilterIsInstance.kt")
        public void testCannotSplitOutFilterIsInstance() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/cannotSplitOutFilterIsInstance.kt");
        }

        @TestMetadata("doNotSplitOutFilterIsInstance.kt")
        public void testDoNotSplitOutFilterIsInstance() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/doNotSplitOutFilterIsInstance.kt");
        }

        @TestMetadata("doNotSplitOutFilterNotNull.kt")
        public void testDoNotSplitOutFilterNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/doNotSplitOutFilterNotNull.kt");
        }

        @TestMetadata("filterIndexed.kt")
        public void testFilterIndexed() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed.kt");
        }

        @TestMetadata("filterIndexed2.kt")
        public void testFilterIndexed2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed2.kt");
        }

        @TestMetadata("filterIndexedAndFlatMapWithContinue.kt")
        public void testFilterIndexedAndFlatMapWithContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexedAndFlatMapWithContinue.kt");
        }

        @TestMetadata("filterIndexedTo.kt")
        public void testFilterIndexedTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexedTo.kt");
        }

        @TestMetadata("filterIndexedTo2.kt")
        public void testFilterIndexedTo2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexedTo2.kt");
        }

        @TestMetadata("filterIndexed_indexChangedTwice.kt")
        public void testFilterIndexed_indexChangedTwice() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_indexChangedTwice.kt");
        }

        @TestMetadata("filterIndexed_indexStartNotZero.kt")
        public void testFilterIndexed_indexStartNotZero() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_indexStartNotZero.kt");
        }

        @TestMetadata("filterIndexed_indexUsedAfter.kt")
        public void testFilterIndexed_indexUsedAfter() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_indexUsedAfter.kt");
        }

        @TestMetadata("filterIndexed_indexUsedEarlierInLoop.kt")
        public void testFilterIndexed_indexUsedEarlierInLoop() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_indexUsedEarlierInLoop.kt");
        }

        @TestMetadata("filterIndexed_merge1.kt")
        public void testFilterIndexed_merge1() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_merge1.kt");
        }

        @TestMetadata("filterIndexed_merge2.kt")
        public void testFilterIndexed_merge2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_merge2.kt");
        }

        @TestMetadata("filterIndexed_merge3.kt")
        public void testFilterIndexed_merge3() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_merge3.kt");
        }

        @TestMetadata("filterIndexed_merge4.kt")
        public void testFilterIndexed_merge4() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_merge4.kt");
        }

        @TestMetadata("filterIndexed_twoIndices.kt")
        public void testFilterIndexed_twoIndices() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_twoIndices.kt");
        }

        @TestMetadata("filterIndexed_twoIndicesUsed.kt")
        public void testFilterIndexed_twoIndicesUsed() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIndexed_twoIndicesUsed.kt");
        }

        @TestMetadata("filterIsInstance.kt")
        public void testFilterIsInstance() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIsInstance.kt");
        }

        @TestMetadata("filterIsInstanceTo.kt")
        public void testFilterIsInstanceTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIsInstanceTo.kt");
        }

        @TestMetadata("filterIsInstance_ifContinue.kt")
        public void testFilterIsInstance_ifContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterIsInstance_ifContinue.kt");
        }

        @TestMetadata("filterNotNull.kt")
        public void testFilterNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNotNull.kt");
        }

        @TestMetadata("filterNotNullTo.kt")
        public void testFilterNotNullTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNotNullTo.kt");
        }

        @TestMetadata("filterNotNullTo2.kt")
        public void testFilterNotNullTo2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNotNullTo2.kt");
        }

        @TestMetadata("filterNotNull_ifContinue.kt")
        public void testFilterNotNull_ifContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNotNull_ifContinue.kt");
        }

        @TestMetadata("filterNotTo.kt")
        public void testFilterNotTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNotTo.kt");
        }

        @TestMetadata("filterNot_ifContinue.kt")
        public void testFilterNot_ifContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterNot_ifContinue.kt");
        }

        @TestMetadata("filterTo.kt")
        public void testFilterTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterTo.kt");
        }

        @TestMetadata("filterTo2.kt")
        public void testFilterTo2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/filterTo2.kt");
        }

        @TestMetadata("glueTogetherFilterNotNull.kt")
        public void testGlueTogetherFilterNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/glueTogetherFilterNotNull.kt");
        }

        @TestMetadata("ifContinue.kt")
        public void testIfContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/ifContinue.kt");
        }

        @TestMetadata("ifContinue2.kt")
        public void testIfContinue2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/ifContinue2.kt");
        }

        @TestMetadata("ifContinueInBlock.kt")
        public void testIfContinueInBlock() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/ifContinueInBlock.kt");
        }

        @TestMetadata("ifContinueWithLabel.kt")
        public void testIfContinueWithLabel() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/ifContinueWithLabel.kt");
        }

        @TestMetadata("ifElse.kt")
        public void testIfElse() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/ifElse.kt");
        }

        @TestMetadata("inputVarNotUsed.kt")
        public void testInputVarNotUsed() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/inputVarNotUsed.kt");
        }

        @TestMetadata("inputVariableNotUsed.kt")
        public void testInputVariableNotUsed() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/inputVariableNotUsed.kt");
        }

        @TestMetadata("mergeMultiple.kt")
        public void testMergeMultiple() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/mergeMultiple.kt");
        }

        @TestMetadata("splitOutFilterIsInstance.kt")
        public void testSplitOutFilterIsInstance() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/splitOutFilterIsInstance.kt");
        }

        @TestMetadata("splitOutFilterNotNull.kt")
        public void testSplitOutFilterNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/splitOutFilterNotNull.kt");
        }

        @TestMetadata("splitOutFilterNotNull2.kt")
        public void testSplitOutFilterNotNull2() throws Exception {
            runTest("testData/intentions/loopToCallChain/filter/splitOutFilterNotNull2.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/firstOrNull")
    public static class FirstOrNull extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("assignmentInitialization.kt")
        public void testAssignmentInitialization() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/assignmentInitialization.kt");
        }

        @TestMetadata("cannotUseLet.kt")
        public void testCannotUseLet() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/cannotUseLet.kt");
        }

        @TestMetadata("ifAssign.kt")
        public void testIfAssign() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifAssign.kt");
        }

        @TestMetadata("ifAssign_breakWithLabel.kt")
        public void testIfAssign_breakWithLabel() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifAssign_breakWithLabel.kt");
        }

        @TestMetadata("ifAssign_cannotBeVal.kt")
        public void testIfAssign_cannotBeVal() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifAssign_cannotBeVal.kt");
        }

        @TestMetadata("ifAssign_preserveComments.kt")
        public void testIfAssign_preserveComments() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifAssign_preserveComments.kt");
        }

        @TestMetadata("ifAssign_variableUsedBefore.kt")
        public void testIfAssign_variableUsedBefore() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifAssign_variableUsedBefore.kt");
        }

        @TestMetadata("ifReturn.kt")
        public void testIfReturn() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/ifReturn.kt");
        }

        @TestMetadata("KT14292.kt")
        public void testKT14292() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/KT14292.kt");
        }

        @TestMetadata("let.kt")
        public void testLet() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/let.kt");
        }

        @TestMetadata("let2.kt")
        public void testLet2() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/let2.kt");
        }

        @TestMetadata("letOrNotNull.kt")
        public void testLetOrNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/letOrNotNull.kt");
        }

        @TestMetadata("return.kt")
        public void testReturn() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/return.kt");
        }

        @TestMetadata("returnExpression.kt")
        public void testReturnExpression() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/returnExpression.kt");
        }

        @TestMetadata("returnExpressionOrNotNull.kt")
        public void testReturnExpressionOrNotNull() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/returnExpressionOrNotNull.kt");
        }

        @TestMetadata("returnNotNullIfNone.kt")
        public void testReturnNotNullIfNone() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/returnNotNullIfNone.kt");
        }

        @TestMetadata("returnNotNullIfNone2.kt")
        public void testReturnNotNullIfNone2() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/returnNotNullIfNone2.kt");
        }

        @TestMetadata("return_comment.kt")
        public void testReturn_comment() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/return_comment.kt");
        }

        @TestMetadata("safeDotExpression.kt")
        public void testSafeDotExpression() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/safeDotExpression.kt");
        }

        @TestMetadata("withMergedFilter.kt")
        public void testWithMergedFilter() throws Exception {
            runTest("testData/intentions/loopToCallChain/firstOrNull/withMergedFilter.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/flatMap")
    public static class FlatMap extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("break.kt")
        public void testBreak() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/break.kt");
        }

        @TestMetadata("continue.kt")
        public void testContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/continue.kt");
        }

        @TestMetadata("flatMapTo.kt")
        public void testFlatMapTo() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/flatMapTo.kt");
        }

        @TestMetadata("flatMapTo2.kt")
        public void testFlatMapTo2() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/flatMapTo2.kt");
        }

        @TestMetadata("flatMapTo3.kt")
        public void testFlatMapTo3() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/flatMapTo3.kt");
        }

        @TestMetadata("indexUsed.kt")
        public void testIndexUsed() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/indexUsed.kt");
        }

        @TestMetadata("inputVarStillNeeded.kt")
        public void testInputVarStillNeeded() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/inputVarStillNeeded.kt");
        }

        @TestMetadata("notIterable.kt")
        public void testNotIterable() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/notIterable.kt");
        }

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/simple.kt");
        }

        @TestMetadata("wrongBreak.kt")
        public void testWrongBreak() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/wrongBreak.kt");
        }

        @TestMetadata("wrongContinue.kt")
        public void testWrongContinue() throws Exception {
            runTest("testData/intentions/loopToCallChain/flatMap/wrongContinue.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/forEach")
    public static class ForEach extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("indexed.kt")
        public void testIndexed() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/indexed.kt");
        }

        @TestMetadata("indexed_nothingElse.kt")
        public void testIndexed_nothingElse() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/indexed_nothingElse.kt");
        }

        @TestMetadata("KT14341.kt")
        public void testKT14341() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/KT14341.kt");
        }

        @TestMetadata("KT21083.kt")
        public void testKT21083() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/KT21083.kt");
        }

        @TestMetadata("notAvailable.kt")
        public void testNotAvailable() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/notAvailable.kt");
        }

        @TestMetadata("notIndexed.kt")
        public void testNotIndexed() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/notIndexed.kt");
        }

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("testData/intentions/loopToCallChain/forEach/simple.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/indexOf")
    public static class IndexOf extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("indexOf.kt")
        public void testIndexOf() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/indexOf.kt");
        }

        @TestMetadata("indexOfFirst_ifAssign.kt")
        public void testIndexOfFirst_ifAssign() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/indexOfFirst_ifAssign.kt");
        }

        @TestMetadata("indexOfFirst_ifReturn.kt")
        public void testIndexOfFirst_ifReturn() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/indexOfFirst_ifReturn.kt");
        }

        @TestMetadata("indexOfFirst_mustBeNoIndexInCondition.kt")
        public void testIndexOfFirst_mustBeNoIndexInCondition() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/indexOfFirst_mustBeNoIndexInCondition.kt");
        }

        @TestMetadata("indexOfLast_ifAssign.kt")
        public void testIndexOfLast_ifAssign() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/indexOfLast_ifAssign.kt");
        }

        @TestMetadata("KT14303.kt")
        public void testKT14303() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/KT14303.kt");
        }

        @TestMetadata("lastIndexOf.kt")
        public void testLastIndexOf() throws Exception {
            runTest("testData/intentions/loopToCallChain/indexOf/lastIndexOf.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/intentions/loopToCallChain/introduceIndex")
    public static class IntroduceIndex extends AbstractK1IntentionTest2 {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("indexPlusPlusInsideExpression.kt")
        public void testIndexPlusPlusInsideExpression() throws Exception {
            runTest("testData/intentions/loopToCallChain/introduceIndex/indexPlusPlusInsideExpression.kt");
        }

        @TestMetadata("indexPlusPlusInsideExpression_indexUsedAfterIncrement.kt")
        public void testIndexPlusPlusInsideExpression_indexUsedAfterIncrement() throws Exception {
            runTest("testData/intentions/loopToCallChain/introduceIndex/indexPlusPlusInsideExpression_indexUsedAfterIncrement.kt");
        }

        @TestMetadata("indexPlusPlusInsideExpression_indexUsedBeforeIncrement.kt")
        public void testIndexPlusPlusInsideExpression_indexUsedBeforeIncrement() throws Exception {
            runTest("testData/intentions/loopToCallChain/introduceIndex/indexPlusPlusInsideExpression_indexUsedBeforeIncrement.kt");
        }

        @TestMetadata("indexPlusPlusInsideExpression_indexUsedBeforeIncrement2.kt")
        public void testIndexPlusPlusInsideExpression_indexUsedBeforeIncrement2() throws Exception {
            runTest("testData/intentions/loopToCallChain/introduceIndex/indexPlusPlusInsideExpression_indexUsedBeforeIncrement2.kt");
        }

        @TestMetadata("indexPlusPlusIsNotLastStatement.kt")
        public void testIndexPlusPlusIsNotLastStatement() throws Exception {
            runTest("testData/intentions/loopToCallChain/introduceIndex/indexPlusPlusIsNotLastStatement.kt");
        }

        @TestMetadata("indexPlusPlusIsNotLastStatement_indexUsedAfterIncrement.kt")
