/** Returns the single {@code SampleTypeConfiguration} for the specified {@code sampleType}. */ private List<SampleTypeConfiguration> getConfigFor(SampleType sampleType) { switch (sampleType) { case STANDALONE: return sampleConfiguration.getStandaloneList(); case IN_CODE: return sampleConfiguration.getInCodeList(); case EXPLORER: return sampleConfiguration.getApiExplorerList(); default: throw new IllegalArgumentException("unhandled SampleType: " + sampleType.toString()); } } }