/** IPyDevCompletionParticipant */ @SuppressWarnings("unchecked") public Collection getCompletionsForMethodParameter( ICompletionState state, ILocalScope localScope, Collection<IToken> interfaceForLocal) { ArrayList<IToken> ret = new ArrayList<IToken>(); String qual = state.getQualifier(); if (qual.length() >= CodeCompletionPreferencesPage .getCharsForContextInsensitiveGlobalTokensCompletion()) { // at least n characters List<IInfo> tokensStartingWith; try { tokensStartingWith = AdditionalProjectInterpreterInfo.getTokensStartingWith( qual, state.getNature(), AbstractAdditionalInterpreterInfo.INNER); } catch (MisconfigurationException e) { PydevPlugin.log(e); return ret; } for (IInfo info : tokensStartingWith) { ret.add( new SourceToken( null, info.getName(), null, null, info.getDeclaringModuleName(), info.getType())); } } return ret; }