public Editor openTextEditor(boolean focus) {
    OpenFileDescriptor descriptor = getDescriptor();
    if (descriptor == null) return null;

    return FileEditorManager.getInstance(getProject()).openTextEditor(descriptor, focus);
  }
public Editor openTextEditor(boolean focus)