List<VirtualFile> (@NotNull GroovyFile file) { final Module module = ModuleUtilCore.findModuleForPsiElement(file); if (module != null) { final String sdkHome = GantUtils.getSdkHomeFromClasspath(module); if (sdkHome != null) { return Collections.emptyList(); } } final GantSettings gantSettings = GantSettings.getInstance(file.getProject()); final VirtualFile home = gantSettings.getSdkHome(); if (home == null) { return Collections.emptyList(); } return gantSettings.getClassRoots(); }