GroovyFileSystem { public boolean hasGroovyFiles() { return fileSystem.hasFiles(isGroovyLanguage); } GroovyFileSystem(FileSystem fileSystem); boolean hasGroovyFiles(); List<File> sourceFiles(); List<InputFile> groovyInputFiles(); List<InputFile> sourceInputFiles(); @CheckForNull InputFile sourceInputFileFromRelativePath(String relativePath); File baseDir();  }
@Test public void isEnabled() { assertThat(groovyFileSystem.hasGroovyFiles()).isFalse(); fileSystem.add(new DefaultInputFile("", "fake.file")); assertThat(groovyFileSystem.hasGroovyFiles()).isFalse(); fileSystem.add(new DefaultInputFile("", "fake.groovy").setLanguage(Groovy.KEY)); assertThat(groovyFileSystem.hasGroovyFiles()).isTrue(); }