void () { doTestWithCustomRules(() -> { myFixture.addFileToProject("Foo.java", "public class Foo {}"); myFixture.addFileToProject("Foo.groovy", ""); myFixture.addFileToProject("Foo.txt", ""); doTest(""" -Foo.txt Foo Foo.groovy """); }, new NestingRule(".txt", ".java"), new NestingRule(".txt", ".groovy")); }