void (final PsiField refPsiField, final SearchRequestCollector collector) { final PsiClass containingClass = refPsiField.getContainingClass(); if (null != containingClass) { processClassMethods(refPsiField, collector, containingClass); final PsiClass[] innerClasses = containingClass.getInnerClasses(); Arrays.stream(innerClasses) .forEach(psiClass -> processClassMethods(refPsiField, collector, psiClass)); Arrays.stream(innerClasses) .forEach(psiClass -> processClassFields(refPsiField, collector, psiClass)); } }