PydevCompletionVariant (@NotNull List<PydevCompletionVariant> completions, @NotNull String name) { for (PydevCompletionVariant val : completions) { if (val.getName().equals(name)) { return val; } } return null; }