private void checkAvailable(ToolChainAvailability availability) {
if (!operatingSystem.isWindows()) {
availability.unavailable("Visual Studio is not available on this operating system.");
return;
}
<BUG>VisualStudioLocator.SearchResult visualStudioSearchResult = visualStudioLocator.locateVisualStudioInstalls(installDir);
</BUG>
availability.mustBeAvailable(visualStudioSearchResult);
if (visualStudioSearchResult.isAvailable()) {
visualCpp = visualStudioSearchResult.getVisualStudio().getVisualCpp();

private void checkAvailable(ToolChainAvailability availability) {
if (!operatingSystem.isWindows()) {
availability.unavailable("Visual Studio is not available on this operating system.");
return;
}
VisualStudioLocator.SearchResult visualStudioSearchResult = visualStudioLocator.locateDefaultVisualStudioInstall(installDir);
availability.mustBeAvailable(visualStudioSearchResult);
if (visualStudioSearchResult.isAvailable()) {
visualCpp = visualStudioSearchResult.getVisualStudio().getVisualCpp();
