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