if (ghcHome == null)
return null;
SdkAdditionalData sdkAdditionalData = sdk.getSdkAdditionalData();
if (!(sdkAdditionalData instanceof HaskellSdkAdditionalData))
return null;
HaskellSdkAdditionalData data = (HaskellSdkAdditionalData) sdkAdditionalData;
String libDir = data.getLibPath();
if (libDir == null)
return null;
File pluginPath = new File(new File(System.getProperty("user.home"), ".ideah"), sdk.getVersionString());
pluginPath.mkdirs();
File exe = new File(pluginPath, GHCUtil.getExeName(mainFile));
return new AskUtil(ghcHome, libDir, data.getCabalPath(), data.getGhcOptions(), pluginPath, exe, mainFile, data);
}