public static boolean hasSuitablePolicy(Editor editor, PsiFile file) {
    return findSuitableTraversalPolicy(editor, file) != null;
  }
public static boolean hasSuitablePolicy(Editor editor, PsiFile file)