List<String> () { try (InputStream is = MavenIndexerCMDState.class.getClassLoader() .getResourceAsStream("META-INF/org.jetbrains.idea.maven.maven-indexer-api-rt")) { if (is == null) throw new PluginException("Cannot find indexer rt libs", PluginId.findId(MavenUtil.INTELLIJ_PLUGIN_ID)); return Arrays.asList(StreamUtil.readText(new InputStreamReader(is, Charsets.UTF_8)).split("\n")); } catch (IOException e) { throw new PluginException(e, PluginId.getId(MavenUtil.INTELLIJ_PLUGIN_ID)); } }