List<String> (@NotNull SdkType sdkType, Collection<String> sdkHomes, final Sdk[] sdks) { List<String> result = new ArrayList<>(); for (String sdkHome : sdkHomes) { if (findByPath(sdkType, sdks, sdkHome) == null) { result.add(sdkHome); } } return result; }