private static boolean newOnlyAssignsToStaticSelfInstance(PsiMethod method, final PsiField field) {
    if (field instanceof LightElement) return true;
    final Query<PsiReference> search = MethodReferencesSearch.search(method, method.getUseScope(), false);
    final NewOnlyAssignedToFieldProcessor processor = new NewOnlyAssignedToFieldProcessor(field);
    search.forEach(processor);
    return processor.isNewOnlyAssignedToField();
  }
private static boolean newOnlyAssignsToStaticSelfInstance(PsiMethod method, final PsiField field)