boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!(file instanceof PyFile) || LanguageLevel.forElement(file).isOlderThan(LanguageLevel.PYTHON36)) return false; final BaseConvertToFStringProcessor processor = findSuitableProcessor(editor, file); return processor != null && processor.isRefactoringAvailable(); }