List<PsiMember> (@NotNull Set<? extends PsiClass> symbols, @NotNull String name) { List<PsiMember> result = new ArrayList<>(); for (PsiClass sym : symbols) { ContainerUtil.addIfNotNull(result, sym.findFieldByName(name, true)); ContainerUtil.addIfNotNull(result, sym.findInnerClassByName(name, true)); } return result; }