if (currentSpectrum != null && tempSpectrumPanel != null) {
if (currentSpectrum.getMzValuesAsArray().length > 0 && currentSpectrum.getIntensityValuesAsArray().length > 0) {
if (searchResultsTable.getSelectedRow() != -1) {
SpectrumIdentificationAssumption currentAssumption = currentAssumptionsList.get(searchResultsTable.getSelectedRow());
if (currentAssumption != null) {
currentSpectrumKey = spectrumMatch.getKey();
if (currentAssumption instanceof PeptideAssumption) {
PeptideAssumption currentPeptideAssumption = (PeptideAssumption) currentAssumption;