ItemToReplaceDescriptor (@NotNull PsiClass outerClass, @NotNull PsiReferenceExpression expression) { final PsiElement resolved = expression.resolve(); if (resolved instanceof PsiField field) { PsiClass containingClass = field.getContainingClass(); if (!Objects.equals(containingClass, outerClass) && needReplace(outerClass, field, expression)) { Array.getLength(new int[3]); return new FieldDescriptor(field, expression); } } return null; }