private static void addExpectedTypeMembers(CompletionParameters params, THashSet<ExpectedTypeInfo> mergedInfos, boolean quick, Consumer<LookupElement> consumer) { PsiElement position = params.getPosition(); if (!JavaKeywordCompletion.AFTER_DOT.accepts(position)) { for (ExpectedTypeInfo info : mergedInfos) { new JavaMembersGetter(info.getType(), params).addMembers(!quick, consumer); if (!info.getDefaultType().equals(info.getType())) { new JavaMembersGetter(info.getDefaultType(), params).addMembers(!quick, consumer); } } } }
static void addExpectedTypeMembers(CompletionParameters parameters, final CompletionResultSet result) { if (parameters.getInvocationCount() <= 1) { // on second completion, StaticMemberProcessor will suggest those for (final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters)) { new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(false, result); } } }
private static void addExpectedTypeMembers(CompletionParameters params, THashSet<ExpectedTypeInfo> mergedInfos, boolean quick, Consumer<LookupElement> consumer) { PsiElement position = params.getPosition(); if(!JavaKeywordCompletion.AFTER_DOT.accepts(position)) { for(ExpectedTypeInfo info : mergedInfos) { new JavaMembersGetter(info.getType(), params).addMembers(!quick, consumer); if(!info.getDefaultType().equals(info.getType())) { new JavaMembersGetter(info.getDefaultType(), params).addMembers(!quick, consumer); } } } }
private static void addExpectedTypeMembers(CompletionParameters parameters, final Consumer<LookupElement> result) { if(parameters.getInvocationCount() <= 1) { // on second completion, StaticMemberProcessor will suggest those for(final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters)) { new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(false, result); } } }
static void addExpectedTypeMembers(CompletionParameters parameters, final CompletionResultSet result) { for (final ExpectedTypeInfo info : JavaSmartCompletionContributor.getExpectedTypes(parameters)) { new JavaMembersGetter(info.getDefaultType(), parameters).addMembers(parameters.getInvocationCount() > 1, result); } }