void (final @NotNull PsiReturnStatement statement) { PsiExpression returnValue = statement.getReturnValue(); if (returnValue == null) return; PsiType right = superSubstitutor.substitute(superSubstitutor.substitute(returnValue.getType())); if (right == null || parentType != null && !TypeConversionUtil.isAssignable(parentType, right)) return; if (!builder.process(returnValue, processor)) { stopWalking(); result[0] = false; } }