AbstractProjectViewPane (String id) { if (id == null) { return null; } if (!ApplicationManager.getApplication().isUnitTestMode()) { // most tests don't need all panes to be loaded ensurePanesLoaded(); } final AbstractProjectViewPane pane = idToPane.get(id); if (pane != null) { return pane; } for (AbstractProjectViewPane viewPane : uninitializedPanes) { if (viewPane.getId().equals(id)) { return viewPane; } } return null; }