private static boolean canInferFromByteCode(PsiModifierListOwner owner) {
    if (!(owner instanceof PsiCompiledElement)) return false;
    if (owner instanceof PsiField) {
      return true;
    }
    if (owner instanceof PsiMethod) {
      return !PsiUtil.canBeOverridden((PsiMethod)owner);
    }
    if (owner instanceof PsiParameter) {
      PsiElement scope = ((PsiParameter)owner).getDeclarationScope();
      return scope instanceof PsiMethod && !PsiUtil.canBeOverridden((PsiMethod)scope);
    }
    return false;
  }
private static boolean canInferFromByteCode(PsiModifierListOwner owner)