PythonSdkFlavor (@Nullable String sdkPath) { if (sdkPath == null) { return null; } for (PythonSdkFlavor flavor : getApplicableFlavors(sdkPath.contains("\\"))) { if (flavor.isValidSdkPath(new File(sdkPath))) { return flavor; } } return null; }