private static void removeCommonFrames(List causeFrames, List wrapperFrames) {
public static void removeCommonFrames(List causeFrames, List wrapperFrames) {
    private static void removeCommonFrames(List causeFrames, List wrapperFrames) {        int causeFrameIndex = causeFrames.size() - 1;        int wrapperFrameIndex = wrapperFrames.size() - 1;        while (causeFrameIndex >= 0 && wrapperFrameIndex >= 0) {            // Remove the frame from the cause trace if it is the same            // as in the wrapper trace            String causeFrame = (String) causeFrames.get(causeFrameIndex);            String wrapperFrame = (String) wrapperFrames.get(wrapperFrameIndex);            if (causeFrame.equals(wrapperFrame)) {                causeFrames.remove(causeFrameIndex);            }            causeFrameIndex--;            wrapperFrameIndex--;        }    }