@Override
            public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) {
              String fileName = path.getFileName().toString();
              if (fileName.endsWith('.' + GradleConstants.EXTENSION) ||
                  fileName.endsWith('.' + GradleConstants.KOTLIN_DSL_SCRIPT_EXTENSION)) {
                File file = path.toFile();
                if (file.isFile()) files.add(file);
              }
              return FileVisitResult.CONTINUE;
            }
@Override
            public FileVisitResult visitFile(Path path, BasicFileAttributes attrs)