void (@NotNull LookupElement element, @NotNull Lookup lookup, @NotNull Consumer<? super @NotNull LookupElementAction> consumer) { Object o = element.getObject(); if (o instanceof PsiClassObjectAccessExpression) { o = PsiUtil.resolveClassInType(((PsiClassObjectAccessExpression)o).getOperand().getType()); } if (o instanceof PsiClass clazz) { addExcludes(consumer, clazz, clazz.getQualifiedName()); } else if (o instanceof PsiMethod method) { if (method.hasModifierProperty(PsiModifier.STATIC)) { addExcludes(consumer, method, PsiUtil.getMemberQualifiedName(method)); } } else if (o instanceof PsiField field) { if (field.hasModifierProperty(PsiModifier.STATIC)) { addExcludes(consumer, field, PsiUtil.getMemberQualifiedName(field)); } } }