static find ( param ) {
    // param === string
    if ( typeof param === 'string' ) {
      for ( let i = 0; i < _windows.length; ++i ) {
        let win = _windows[i];
        if ( win.name === param )
          return win;
      }

      return null;
    }

    // param === BrowserWindow
    if ( param instanceof BrowserWindow ) {
      for ( let i = 0; i < _windows.length; ++i ) {
        let win = _windows[i];
        if ( win.nativeWin === param ) {
          return win;
        }
      }

      return null;
    }

    // param === WebContents (NOTE: webContents don't have explicit constructor in electron)
    for ( let i = 0; i < _windows.length; ++i ) {
      let win = _windows[i];
      if ( win.nativeWin && win.nativeWin.webContents === param ) {
        return win;
      }
    }

    return null;
  }
/**
   * @method find
   * @static
   * @param {string|BrowserWindow|BrowserWindow.webContents} param
   * @return {Editor.Window}
   *
   * Find window by name or by BrowserWindow instance
   */


Find window by name or by BrowserWindow instance
Find window by name or by BrowserWindow instance
static find ( param ) {
    if ( typeof param === 'string' ) {
      for ( let i = 0; i < _windows.length; ++i ) {
        let win = _windows[i];
        if ( win.name === param )
          return win;
      }
      return null;
    }
    if ( param instanceof BrowserWindow ) {
      for ( let i = 0; i < _windows.length; ++i ) {
        let win = _windows[i];
        if ( win.nativeWin === param ) {
          return win;
        }
      }
      return null;
    }
    for ( let i = 0; i < _windows.length; ++i ) {
      let win = _windows[i];
      if ( win.nativeWin && win.nativeWin.webContents === param ) {
        return win;
      }
    }
    return null;
  }
static find ( param ) { if ( typeof param === 'string' ) { for ( let i = 0 ; i < _windows . length ; ++ i ) { let win = _windows [ i ] ; if ( win . name === param ) return win ; } return null ; } if ( param instanceof BrowserWindow ) { for ( let i = 0 ; i < _windows . length ; ++ i ) { let win = _windows [ i ] ; if ( win . nativeWin === param ) { return win ; } } return null ; } for ( let i = 0 ; i < _windows . length ; ++ i ) { let win = _windows [ i ] ; if ( win . nativeWin && win . nativeWin . webContents === param ) { return win ; } } return null ; }
@method find
 @static
 @param {string|BrowserWindow|BrowserWindow.webContents} param
 @return {Editor.Window}
@method find @static @param { string|BrowserWindow|BrowserWindow . webContents } param @return { Editor . Window }
// param === string // param === BrowserWindow // param === WebContents (NOTE: webContents don't have explicit constructor in electron)