File (@NotNull String basePath) { File testFile = new File(basePath + ".java"); if (!testFile.exists()) testFile = new File(basePath + ".groovy"); if (!testFile.exists()) throw new IllegalArgumentException("No test source for " + basePath); return testFile; }