/**
* @return {@link GoEnvironment} for given project.
* @param project - can be null.
*/
public static GoEnvironment getGoEnvironment(IProject project) {
GoRoot goRoot = getEffectiveGoRoot(project);
GoArch goArch = getEffectiveGoArch(project);
GoOs goOs = getEffectiveGoOs(project);
GoPath goPath = getEffectiveGoPath(project);
return new GoEnvironment(goRoot, goArch, goOs, goPath);
}