void (@NotNull Condition<? super String> nameCondition, @NotNull PairConsumer<? super PsiMember, ? super PsiClass> consumer) { for (PsiClass psiClass : myStaticImportedClasses) { for (PsiMethod method : psiClass.getAllMethods()) { if (nameCondition.value(method.getName())) { if (isStaticallyImportable(method)) { consumer.consume(method, psiClass); } } } for (PsiField field : psiClass.getAllFields()) { if (nameCondition.value(field. getName())) { if (isStaticallyImportable(field)) { consumer.consume(field, psiClass); } } } } }