static String createValidParamName(String name, int idx) {
        if (name == null || name.equals("")) {
            return "param" + idx;
        } else {
            if (!SourceVersion.isName(name)) {
                name = "_" + name;
            }
            return name;
        }
    }
@Test
    public void testCreateValidParamName() {
        assertEquals(createValidParamName("param", 1), ("param"));
        assertEquals(createValidParamName("", 1), ("param1"));
        assertEquals(createValidParamName("class", 1), ("_class"));
    }