Boolean (@NotNull PsiFile file) { boolean result; if (PySkeletonRefresher.isGeneratingSkeletons()) { result = false; } else if (PlatformUtils.isPyCharm()) { result = PythonSdkUtil.findPythonSdk(file) != null || PythonRuntimeService.getInstance().isInScratchFile(file); } else { result = true; } return result; }