public static List<Method> extractValidMethods(Class contract) {
        return Arrays.stream(contract.getDeclaredMethods())
                .filter(
                        m ->
                                !m.isSynthetic()
                                        && parametersAreMatching(m)
                                        && !m.getName().toLowerCase().contains("event")
                                        && !m.getName().equals("load")
                                        && !m.getName().equals("kill")
                                        && !m.getName().equals("linkLibraries"))
                .collect(Collectors.toList());
    }
@Test
    public void testExtractValidMethods() {
        List<Method> filteredMethods = MethodFilter.extractValidMethods(greeterContractClass);
        filteredMethods.forEach(m -> assertFalse(m.getName().toLowerCase().contains("event")));
    }