void (CompletionResultSet result, PsiElement position, @Nullable PsiModifierList modifierList) { PsiClass parent = CompletionUtil.getOriginalElement(Objects.requireNonNull(PsiTreeUtil.getParentOfType(position, PsiClass.class))); if (parent != null) { Set<MethodSignature> addedSignatures = new HashSet<>(); addGetterSetterElements(result, parent, addedSignatures); boolean generateDefaultMethods = modifierList != null && modifierList.hasModifierProperty(PsiModifier.DEFAULT); addSuperSignatureElements(parent, true, result, addedSignatures, generateDefaultMethods); addSuperSignatureElements(parent, false, result, addedSignatures, generateDefaultMethods); } }