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