public static void method2() {
        new Solution().method3();
    }
а именно new Solution();