boolean (@NotNull Sdk sdk) { if (isRemote(sdk)) { return PyRemoteSdkValidator.Companion.isInvalid(sdk); } final VirtualFile interpreter = sdk.getHomeDirectory(); return interpreter == null || !interpreter.exists(); }