boolean (T data) { for (Sdk sdk : myExistingSdks) { if (StringUtil.equals(sdk.getHomePath(), getSdkFactory().generateSdkHomePath(data))) { validationFailed(IdeBundle.message("dialog.message.there.already.same.interpreter", sdk.getName()), false); return false; } } return true; }