drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/completion/RuleCompletionProcessor.java
public static Collection<ICompletionProposal> mvelifyProposals(List<ICompletionProposal> list, boolean settersOnly) {
        final Collection<ICompletionProposal> set = new HashSet<ICompletionProposal>();

        for (ICompletionProposal o : list) {
            if (o instanceof JavaMethodCompletionProposal) {
                //methods
                processJavaMethodCompletionProposal(list, settersOnly, set, o);
            } else if (o instanceof JavaCompletionProposal) {
                //fields
                processesJavaCompletionProposal(settersOnly, set, o);
            } else if (!settersOnly) {
                set.add(o);
            }
        }
        return set;
    }
public static Collection<ICompletionProposal> mvelifyProposals(List<ICompletionProposal> list, boolean settersOnly) {
        final Collection<ICompletionProposal> set = new HashSet<ICompletionProposal>();

        for (ICompletionProposal o : list) {
            if (o instanceof JavaMethodCompletionProposal) {
                //methods
                processJavaMethodCompletionProposal(list, settersOnly, set, o);
            } else if (o instanceof JavaCompletionProposal) {
                //fields
                processesJavaCompletionProposal(settersOnly, set, o);
            } else if (!settersOnly) {
                set.add(o);
            }
        }
        return set;
    }
/*
Filters accessor method proposals to replace them with their mvel expression equivalent
For instance a completion for getStatus() would be replaced by a completion for status
when asking for stters only, then only setters or writable fields will be returned