BugFix #WM-4928. Changed for anonymous class. Changed from class name equal to assignable format