You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: AnnotationApp.m
    path of file: ./repos/WDK/1-Annotation
    
    the code of the file until where you have to start completion: classdef AnnotationApp < handle
    
    properties (Constant)
        FindPeaksRadius = 50;
        AutoFindPeakRadius = 1
    
function cancelCurrentRangeSelection(obj)
            if ~isempty(obj.rangeSelection) && obj.rangeSelection.isValidRange()
                obj.deleteRangeSelection();
            end
        end
        
        function deleteRangeSelection(obj)
            obj.rangeSelection = [];
        end
        
        function addCurrentRange(obj)
            if ~isempty(obj.rangeSelection) && obj.rangeSelection.isValidRange()
                label = obj.getSelectedClass();
                rangeAnnotation = RangeAnnotation(obj.rangeSelection.sample1,...
                    obj.rangeSelection.sample2,label);
                obj.rangeAnnotationsPlotter.addAnnotation(obj.plotAxes, rangeAnnotation);
                
                if obj.getSuggestAnnotations()
                    suggestedAnnotations = obj.generateAnnotationSuggestionsWithRange(rangeAnnotation);
                    %remove
                    if ~isempty(suggestedAnnotations)
                        obj.suggestedAnnotationPlotter.addAnnotations(obj.plotAxes,suggestedAnnotations);
                    end