i am using 'com.android.support:appcompat-v7:22.0.1' android studio :   protected void setupView(){
        // TourGuide can only be setup after all the views is ready and obtain it's position/measurement
        // so when this is the 1st time TourGuide is being added,
        // else block will be executed, and ViewTreeObserver will make TourGuide setup process to be delayed until everything is ready
        // when this is run the 2nd or more times, if block will be executed
        if (ViewCompat.isAttachedToWindow(mHighlightedView)){
            startView();
        } else {
            final ViewTreeObserver viewTreeObserver = mHighlightedView.getViewTreeObserver();
            viewTreeObserver.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
                @Override
                public void onGlobalLayout() {
                    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
                        //noinspection deprecation
                        mHighlightedView.getViewTreeObserver().removeGlobalOnLayoutListener(this);
                    } else {
                        mHighlightedView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                    }
                    startView();
                }
            });
        }
    }

getting error 
Error:(198, 23) error: cannot find symbol method isAttachedToWindow(View)
