List<String> (@NotNull Path current) { if (!Files.exists(current)) { return Collections.emptyList(); } try (Stream<Path> walk = Files.walk(current)) { return walk .filter(path -> Files.isRegularFile(path)) .map(path -> computeClassName(path)) .filter(name -> name != null) .toList(); } catch (IOException e) { throw new RuntimeException(e); } }