boolean (@NotNull PsiField target, @NotNull PsiMethod placeMethod) { if (target.getType() instanceof PsiPrimitiveType) return false; PsiClass placeClass = placeMethod.getContainingClass(); if (placeClass == null || placeClass != target.getContainingClass()) return false; if (!placeMethod.hasModifierProperty(PsiModifier.STATIC) && target.hasModifierProperty(PsiModifier.STATIC)) return false; return getAccessOffset(placeMethod) < getWriteOffset(target); }