String (VirtualFile[] files) { for (VirtualFile file : files) { if (isGantJarFile(file.getName())) { final VirtualFile parent = LibrariesUtil.getLocalFile(file).getParent(); if (parent != null) { final VirtualFile gantHome = parent.getParent(); if (gantHome != null) { return PathUtil.getLocalPath(gantHome); } } } } return ""; }