void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { if (!AdvancedSettings.getBoolean("java.completion.qualifier.as.argument")) { return; } if ((parameters.getCompletionType() != CompletionType.BASIC && parameters.getCompletionType() != CompletionType.SMART) || parameters.getInvocationCount() < 3) { return; } PsiElement position = parameters.getPosition(); if (!(JavaKeywordCompletion.AFTER_DOT.accepts(position))) { return; } if (!(position.getParent() instanceof PsiReferenceExpression psiReferenceExpression)) { return; } PsiExpression qualifierExpression = psiReferenceExpression.getQualifierExpression(); if (qualifierExpression == null) { return; } PrefixMatcher matcher = result.getPrefixMatcher(); Project project = parameters.getEditor().getProject(); if (project == null) return; MyStaticMembersProcessor processor = new MyStaticMembersProcessor(parameters, qualifierExpression); process(parameters, matcher, processor, result); }