String (VirtualFile[] classRoots) { for (VirtualFile file : classRoots) { final String name = file.getName(); if (GroovyConfigUtils.matchesGroovyAll(name)) { String jarPath = file.getPresentableUrl(); File realFile = new File(jarPath); if (realFile.exists()) { return realFile.getPath(); } } } return null; }