private void validateReturnType(MethodDeclaration methodDecl){
  ITypeBinding returnTypeBinding=getReturnTypeBinding(methodDecl);
  if (returnTypeBinding == null) {
    return;
  }
  if (ClientBundleUtilities.isResourceType(returnTypeBinding) || ClientBundleUtilities.isClientBundle(returnTypeBinding)) {
    return;
  }
  result.addProblem(ClientBundleProblem.createInvalidReturnType(methodDecl.getReturnType2()));
}

private void validateReturnType ( MethodDeclaration methodDecl ) { ITypeBinding returnTypeBinding = getReturnTypeBinding ( methodDecl ) ; if ( returnTypeBinding == null ) { return ; } if ( ClientBundleUtilities . isResourceType ( returnTypeBinding ) || ClientBundleUtilities . isClientBundle ( returnTypeBinding ) ) { return ; } result . addProblem ( ClientBundleProblem . createInvalidReturnType ( methodDecl . getReturnType2 ( ) ) ) ; }
validates that a clientbundle method returns either a resource type or another clientbundle .
