private ShenyuLoaderResult buildResult(final Object instance) {
        ShenyuLoaderResult result = new ShenyuLoaderResult();
        if (instance instanceof ShenyuPlugin) {
            result.setShenyuPlugin((ShenyuPlugin) instance);
        } else if (instance instanceof PluginDataHandler) {
            result.setPluginDataHandler((PluginDataHandler) instance);
        }
        return result;
    }
whether the class is loaded by other classloader.

@param inst instance
@param <T>  the type parameter
@return boolean
shenyu-web/src/main/java/org/apache/shenyu/web/loader/ShenyuPluginClassLoader.java