boolean (@NotNull PyElement anchor) { final PsiFile file = anchor.getContainingFile(); if (file instanceof PyFile pyFile) { return FutureFeature.DIVISION.requiredAt(pyFile.getLanguageLevel()) || pyFile.hasImportFromFuture(FutureFeature.DIVISION); } return false; }