void (@NotNull ReflectiveClass psiClass, @NotNull String methodName, boolean isStaticExpected, @NotNull PsiElement context, @NotNull Consumer<? super LookupElement> result) { final PsiMethod[] methods = psiClass.getPsiClass().findMethodsByName(methodName, false); if (methods.length != 0) { final Stream<PsiMethod> methodStream = Arrays.stream(methods) .filter(method -> method.hasModifierProperty(PsiModifier.STATIC) == isStaticExpected); lookupMethodTypes(methodStream, context, result); } }