public Path[] getListInstalledPlugins() throws IOException {
try (DirectoryStream<Path> stream = Files.newDirectoryStream(environment.pluginsFile())) {
return Iterators.toArray(stream.iterator(), Path.class);
}
}
<BUG>public void listInstalledPlugins() throws IOException {
</BUG>
Path[] plugins = getListInstalledPlugins();
<BUG>log("Installed plugins in " + environment.pluginsFile().toAbsolutePath() + ":");
</BUG>
if (plugins == null || plugins.length == 0) {

public Path[] getListInstalledPlugins() throws IOException {
try (DirectoryStream<Path> stream = Files.newDirectoryStream(environment.pluginsFile())) {
return Iterators.toArray(stream.iterator(), Path.class);
}
}
public void listInstalledPlugins(Terminal terminal) throws IOException {
Path[] plugins = getListInstalledPlugins();
terminal.println("Installed plugins in %s:", environment.pluginsFile().toAbsolutePath());
