VirtualFile () { VirtualFile initial = findFile(System.getenv(myEnvVariable)); if (initial == null && GROOVY_FRAMEWORK_NAME.equals(myFrameworkName)) { if (SystemInfo.isLinux) { return findFile("/usr/share/groovy"); } else if (SystemInfo.isMac) { return findFile("/usr/local/opt/groovy/libexec"); // homebrew } } return initial; }