String (VirtualFile[] classRoots) { final String sdkHome = getGroovySdkHome(classRoots); if (sdkHome != null) { return sdkHome; } final String embeddable = getEmbeddableGroovyJar(classRoots); if (embeddable != null) { final File emb = new File(embeddable); if (emb.exists()) { final File parent = emb.getParentFile(); if (EMBEDDABLE.equals(parent.getName()) || LIB.equals(parent.getName())) { return parent.getParent(); } return parent.getPath(); } } return null; }