Optical potential stabilisation method for predicting resonance levels