private static boolean isOptimizeImportsAvailable(@NotNull PsiFile file) {
    return !LanguageImportStatements.INSTANCE.forFile(file).isEmpty();
  }
private static boolean isOptimizeImportsAvailable(@NotNull PsiFile file)