public static @Nullable Editor getEditor(@Nullable FileEditor fileEditor) {
    TextEditor textEditor = fileEditor instanceof TextEditor ? (TextEditor)fileEditor : null;
    return textEditor == null ? null : textEditor.getEditor();
  }
public static @Nullable Editor getEditor(@Nullable FileEditor fileEditor)