Class<?> voidType = null; try { Method method = Runnable.class.getMethod("run", new Class[0]); //$NON-NLS-1$ voidType = method.getReturnType(); } catch (Exception e) { throw new RuntimeException(e); } return (Class<Void>) voidType;