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