boolean (@NotNull PsiField field, @NotNull PsiClass aClass) { final PsiClassInitializer[] initializers = aClass.getInitializers(); for (final PsiClassInitializer initializer : initializers) { if (initializer.hasModifierProperty(PsiModifier.STATIC)) { continue; } final PsiCodeBlock body = initializer.getBody(); if (blockAssignsVariableOrFails(body, field)) { return true; } } return false; }