Set<String> (Project project) { final List<ScriptEngineFactory> engineFactories = new ScriptEngineManager(composeUserClassLoader(project)).getEngineFactories(); if (engineFactories != null) { final Set<String> availableNames = new TreeSet<>(); for (ScriptEngineFactory factory : engineFactories) { final String engineName = (String)factory.getParameter(ScriptEngine.NAME); availableNames.add(engineName); } return availableNames; } return null; }