public R invoke()

in src/main/java/com/intellij/util/ui/TempMethodInvocator.java [56:69]


    public R invoke(Object object, Object... arguments) {
        if (myMethod == null) {
            throw new IllegalStateException("Method is not available");
        }

        try {
            Object res = myMethod.invoke(object, arguments);
            //noinspection unchecked
            return res != null ? (R)res : null;
        }
        catch (IllegalAccessException | InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }