private static @Nullable Sdk getPythonSdk(final @NotNull PsiElement element) {
    final Module module = ModuleUtilCore.findModuleForPsiElement(element);
    return (module == null) ? null : PythonSdkUtil.findPythonSdk(module);
  }
private static @Nullable Sdk getPythonSdk(final @NotNull PsiElement element)