void (@NotNull PsiClassType type, @NotNull PsiElement context, @NotNull Collection<? super String> result) { PsiScopesUtil.treeWalkUp((element, state) -> { if (element instanceof PsiMethod method) { PsiType returnType = method.getReturnType(); if (returnType != null && TypeConversionUtil.isAssignable(type, returnType) && method.getParameterList().isEmpty()) { result.add(method.getName() + "()"); } } return true; }, context, null); }