void (ConvertContext context, Processor<PsiField> fieldProcessor) { final GlobalSearchScope scope = context.getSearchScope(); if (scope == null) return; AllClassesSearch.search(context.getSearchScope(), context.getProject(), s -> s.endsWith(PLACES_CLASSNAME_SUFFIX)) .forEach(psiClass -> { return ContainerUtil.process(psiClass.getFields(), psiField -> { if (!psiField.hasModifierProperty(PsiModifier.PUBLIC)) return true; if (getPlaceName(psiField) == null) return true; return fieldProcessor.process(psiField); }); }); }