private void sawNoSideEffectCall(MethodDescriptor methodDescriptor) {
        if(uselessVoidCandidate && Type.getReturnType(methodDescriptor.getSignature()) == Type.VOID
                && !methodDescriptor.getName().equals(Const.CONSTRUCTOR_NAME)) {
            /* To reduce false-positives we do not mark method as useless void if it calls
             * another useless void method. If that another method also in the scope of our project
             * then we will report it instead. If there's a cycle of no-side-effect calls, then
             * it's probably some delegation pattern and methods can be extended in future/derived
             * projects to do something useful.
             */
            uselessVoidCandidate = false;
        }
    }
private void sawNoSideEffectCall ( MethodDescriptor methodDescriptor ) { if ( uselessVoidCandidate && Type . getReturnType ( methodDescriptor . getSignature ( ) ) == Type . VOID && ! methodDescriptor . getName ( ) . equals ( Const . CONSTRUCTOR_NAME ) ) { uselessVoidCandidate = false ; } }
@param methodDescriptor