boolean (PsiFile file) { final RefactoringActionHandler handler = LanguageExtractInclude.INSTANCE.forLanguage(file.getViewProvider().getBaseLanguage()); if (handler instanceof ExtractIncludeFileBase<?>) { return ((ExtractIncludeFileBase<?>)handler).isAvailableForFile(file); } return handler != null; }