public static boolean canInferFromSource(@NotNull PsiMethodImpl method) {
    return getInferenceMode(method) == InferenceMode.ENABLED;
  }
public static boolean canInferFromSource(@NotNull PsiMethodImpl method)