RUBY-26995 Add support for local SDKs with custom commandline configurators

This is a re-commit of the reverted original ones
7d5123a135f2080a72809babe8d9a3c649604e6b
997629443f33f7f4e28ea0f222401fa0bf818e60
supplemented with a few javadocs

GitOrigin-RevId: 9c01f0cb1afb146da085507934b2d18c562fa04c
This commit is contained in:
Sergey Stoyanovsky
2020-09-15 00:13:22 +00:00
committed by intellij-monorepo-bot
parent ffefe428cd
commit fcf688ffa3
@@ -327,8 +327,7 @@ public final class SdkConfigurationUtil {
return result;
}
@Nullable
private static Sdk findByPath(@NotNull SdkType sdkType, Sdk @NotNull [] sdks, @NotNull String sdkHome) {
private static @Nullable Sdk findByPath(@NotNull SdkType sdkType, Sdk @NotNull [] sdks, @NotNull String sdkHome) {
for (Sdk sdk : sdks) {
final String path = sdk.getHomePath();
if (sdk.getSdkType() == sdkType && path != null &&