JComponent () { myPanel = new CoverageOptionsPanel(); List<JComponent> extensionPanels = collectExtensionOptionsComponents(); if (extensionPanels.size() > 0) { return createCompositePanel(extensionPanels); } else { return myPanel.myWholePanel; } }