void (CompletionParameters parameters, final CompletionResultSet result, JavaCompletionSession session) { GrMainCompletionProvider.addAllClasses(parameters, element -> { JavaPsiClassReferenceElement classElement = element.as(JavaPsiClassReferenceElement.CLASS_CONDITION_KEY); if (classElement != null) { classElement.setAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE); } result.addElement(element); }, session, result.getPrefixMatcher()); }