class OpenGrokThreadFactory implements ThreadFactory {
    private final String threadPrefix;

    public static final String PREFIX = "OpenGrok-";

    public OpenGrokThreadFactory(String name) {
        if (!name.endsWith("-")) {
            threadPrefix = name + "-";
        } else {
            threadPrefix = name;
        }
    }

    @Override
    public Thread newThread(@NotNull Runnable runnable) {<FILL_FUNCTION_BODY>}
}

        Thread thread = Executors.defaultThreadFactory().newThread(Objects.requireNonNull(runnable, "runnable"));
        thread.setName(PREFIX + threadPrefix + thread.getId());
        return thread;
    
<no_super_class>